Spring Initializr

项目结构

启动类
1 |
|
启动
1 | . ____ _ __ _ _ |
验证
1 | $ curl http://localhost:8080/hello |
pom
1 |
|
打包
1 | $ mvn clean package -Dmaven.test.skip |
自定义parent
1 |
|
1 | @SpringBootApplication |
1 | . ____ _ __ _ _ |
1 | $ curl http://localhost:8080/hello |
1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | $ mvn clean package -Dmaven.test.skip |
1 | <?xml version="1.0" encoding="UTF-8"?> |