Giter Club home page Giter Club logo

spring-boot-practice's Introduction

spring-boot-practice

Spring Boot Practice

开发过程中:

启动:

  • mvn spring-boot:run
  • 在IDE中运行java应用程序启动

debug模式启动

  • mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"

https://docs.spring.io/spring-boot/docs/1.3.0.BUILD-SNAPSHOT/maven-plugin/run-mojo.html#jvmArguments

  • 在IDE中debug模式运行java应用程序启动

Running as a packaged application

直接运行

  • java -jar target/myproject-0.0.1-SNAPSHOT.jar

debug模式

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar target/myproject-0.0.1-SNAPSHOT.jar

应用自动重启

  更改代码后, IDE自动编译,classpath的字节码文件变化,spring boot会自动重启,如果IDE不管用,请mvn compile 手动编译.

文档

生成

mvn test -Dspring.profiles.active=doc

访问

http://localhost:8989/springBoot/swagger-ui.html

http://localhost:8989/springBoot/v2/api-docs



enunciate 在配置文件中修改模板(js加载太慢,到源文件里copy一份,修改js地址)
<modules>
    <docs freemarkerTemplate="${project.basedir}/dist/docs.fmt"/>
    <jackson1 disabled="true"/>
</modules>



项目目录



外部简化开发工具

分支部分说明

spring-boot-practice's People

Contributors

sdcuike avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.