
springboot start
cskf
学习技术
展开
-
springboot的核心配置文件application.properties或application.yml_多环境下核心文件配置
springboot 创建web工程后,默认不需要配置tomcat的端口,默认是8080,且默认没有上下文。 一、若不想用默认值,可以更改springboot的核心配置文件application.properties或application.yml,核心配置文件有且只有有个 application.properties 文件中更改如下下 server.port=8081 server.servlet.context-path=/springboot application.yml文件中更改..原创 2020-12-06 09:01:58 · 607 阅读 · 0 评论 -
springboot 自定义start
七、验证自己写的启动器是否可用 (1)创建一个测试工程,勾选web工程 (2)引入自己写的启动器 <!--引入自己的启动器--> <dependency> <groupId>com.huang</groupId> <artifactId>hua-spring-boot-start</ar...原创 2020-05-03 11:20:12 · 464 阅读 · 0 评论