https://code.quarkus.io/

mvn io.quarkus.platform:quarkus-maven-plugin:3.17.3:create -DprojectGroupId=my-groupId  -DprojectArtifactId=my-artifactId

mvn quarkus:list-extensions

./mvnw quarkus:add-extension -Dextensions='hibernate-validator'

./mvnw quarkus:add-extensions -Dextensions=jdbc,agroal,non-exist-ent

./mvnw quarkus:add-extension -Dextensions="spring-data-jpa"

dev-mode

see https://quarkus.io/guides/maven-tooling#dev-mode

mvn clean compile quarkus:dev -DdebugHost=0.0.0.0
  - default is `-DdebugHost=localhost`

mvn clean compile quarkus:dev -Dquarkus.profile=prod


./mvnw quarkus:remote-dev -Dquarkus.live-reload.url=http://my-remote-host:8080

debugging

https://quarkus.io/guides/maven-tooling#debugging

./mvnw quarkus:dev -Dsuspend -Ddebug

debugging by breakpoint in idea:

reference here

add ‘Remote JVM Debug’

like properties in springboot

https://quarkus.io/guides/all-config

https://quarkus.io/guides/config-mappings#config-mappings

@Value() in springboot
https://quarkus.io/guides/config-reference#configuration-sources
use @ConfigProperty

encrypt text in application.properties
https://smallrye.io/smallrye-config/Main/config/secret-keys/ and https://smallrye.io/smallrye-config/Main/config/secret-keys/#jasypt

build

https://quarkus.io/guides/maven-tooling#uber-jar-maven

mvn clean pacakge -Dquarkus.package.jar.type=uber-jar

configuration list:
see https://quarkus.io/guides/maven-tooling#dev-mode and search ‘Configuration property’ or ‘quarkus.package.jar.type’

specify profile ‘prod’ at runtime

java -Dquarkus.profile=prod -jar my-artifactId-1.0.0-SNAPSHOT-runner.jar

refer

https://www.cnblogs.com/bolingcavalry/p/17576094.html
https://quarkus.io/guides/spring-data-jpa
https://quarkus.io/guides/spring-web
https://github.com/quarkusio/quarkus-quickstarts

作者:张三  创建时间:2024-12-07 12:31
最后编辑:张三  更新时间:2024-12-07 14:41