Skip to content

Instantly share code, notes, and snippets.

@fiorenzino
Last active June 26, 2019 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiorenzino/fb2d175a7bbf8c44b4fe28f7c66f61f3 to your computer and use it in GitHub Desktop.
Save fiorenzino/fb2d175a7bbf8c44b4fe28f7c66f61f3 to your computer and use it in GitHub Desktop.
prove quarkus
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