Maven spring boot run debug with arguments

后端 未结 3 1563

Usually I\'m running my Spring Boot application with command:

mvn spring-boot:run -Drun.arguments=--server.port=9090 \\
   -Dpath.to.config.dir=/var/data/my/         


        
3条回答
  •  失恋的感觉
    2020-12-13 06:38

    Notice that from spring-boot 2.0 names have changed. For more details check out:

    https://docs.spring.io/spring-boot/docs/2.0.2.RELEASE/maven-plugin/run-mojo.html

    • run.jvmArguments -> spring-boot.run.jvmArguments
    • run.arguments -> spring-boot.run.arguments

提交回复
热议问题