Last active
June 26, 2019 20:50
-
-
Save fiorenzino/fb2d175a7bbf8c44b4fe28f7c66f61f3 to your computer and use it in GitHub Desktop.
prove quarkus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn io.quarkus:quarkus-maven-plugin:0.17.0:create \ | |
-DprojectGroupId=it.ictgroup \ | |
-DprojectArtifactId=primo \ | |
-DclassName="it.ictgroup.TestRs" \ | |
-Dpath="/test" | |
cd primo | |
nel file src/main/resources/application.properties | |
# configure your datasource | |
quarkus.datasource.url=jdbc:h2:./db/repository | |
quarkus.datasource.driver=org.h2.Driver | |
quarkus.datasource.username = sa | |
quarkus.datasource.password = '' | |
# drop and create the database at startup (use `update` to only update the schema) | |
quarkus.hibernate-orm.database.generation=drop-and-create | |
aggiungere in pom.xml | |
<!-- Hibernate ORM specific dependencies --> | |
<dependency> | |
<groupId>io.quarkus</groupId> | |
<artifactId>quarkus-hibernate-orm-panache</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>io.quarkus</groupId> | |
<artifactId>quarkus-jdbc-h2</artifactId> | |
</dependency> | |
copiare sotto la cartella: | |
/Users/fiorenzo/.m2/repository/io | |
il file: https://github.com/fiorenzino/conversations/blob/master/qu.zip | |
REST | |
@GET | |
/api/v1/utenti | |
lista di utenti | |
@GET | |
/api/v1/utenti/{uuid} | |
get singolo utente | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment