En un mot, c'est un framework Web qui ne prend en charge que ** Java 8 ** et versions ultérieures. Je pense que ce sera plus facile à comprendre si vous lisez ici pour plus de détails. http://dev.classmethod.jp/server-side/framework-jooby-01/
Les détails sont conformes à l'original QUICK START, mais Maven est requis.
Install JDK 8+ Install Maven 3+
[vagrant@localhost vagrant]$ sudo yum install -y java-1.8.0-openjdk-devel maven
~~~
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
java-1.8.0-openjdk-devel x86_64 1:1.8.0.131-3.b12.el7_3 updates 9.7 M
maven noarch 3.0.5-17.el7 base 1.3 M
~~~
[vagrant@localhost vagrant]$ cd /vagrant/
[vagrant@localhost vagrant]$ mvn archetype:generate -B -DgroupId=com.mycompany -DartifactId=my-app -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=jooby-archetype -DarchetypeGroupId=org.jooby -DarchetypeVersion=1.1.3
~~~
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: jooby-archetype:1.1.3
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: packageInPathFormat, Value: com/mycompany
[INFO] Parameter: package, Value: com.mycompany
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: jooby-version, Value: 1.1.3
[INFO] Parameter: groupId, Value: com.mycompany
[INFO] Parameter: artifactId, Value: my-app
[INFO] Project created from Archetype in dir: /vagrant/my-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.030s
[INFO] Finished at: Fri Jul 14 07:57:50 JST 2017
[INFO] Final Memory: 14M/53M
[INFO] ------------------------------------------------------------------------
>>> jooby:run[info|main]: Hotswap available on: [C:\work\tmp\vagrant\my-app]
>>> jooby:run[info|main]: includes: [**/*.class;**/*.conf;**/*.properties;*.js;src/*.js]
>>> jooby:run[info|main]: excludes: []
[2017-07-14 08:55:19,258]-[HotSwap] INFO com.mycompany.App - [dev@netty]: Server started in 1388ms
GET / [*/*] [*/*] (/anonymous)
listening on:
http://localhost:8080/
Hello World!
Cela semble fonctionner correctement.
[2017-07-14 09:03:44,466]-[HotswapScanner] INFO com.mycompany.App - Stopped
[2017-07-14 09:03:45,403]-[HotSwap] INFO com.mycompany.App - [dev@netty]: Server started in 791ms
GET / [*/*] [*/*] (/anonymous)
listening on:
http://localhost:8080/
Le fait qu'il ait été redémarré est affiché sur la console.
Hello World!!!!!!!!!!!
J'ai pu confirmer que la correction était reflétée. Si vous pouvez confirmer jusqu'à présent, je pense que vous êtes dans une situation où vous pouvez développer avec Eclipse.
Il n'y a pas encore beaucoup d'informations en japonais, mais je pense que c'est le ** Web Framework ** auquel je voudrais faire attention à partir de maintenant. Ensuite, vérifions le fonctionnement avec Gradle.
Recommended Posts