![](https://img-blog.csdnimg.cn/20190918140129601.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Springboot
springboot
Keary-Li
..
展开
-
springboot笔记-配置文件内容
首先配置都是自动装配的,所以所有东西都是人家封装好的,用就得了 每个springboor项目都有这个: package com.hang.springboot02config; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Springboot原创 2021-10-15 14:26:06 · 185 阅读 · 0 评论 -
springboot笔记-端口选择
使用yaml选择: server: port: 8001 spring: profiles: active:development --- server: port: 8002 spring: profiles:development --- server: port: 8003 spring: profiles:test 使用properties配置选择: server.port=8988 spring.profiles.active=dev 用后面这个dev选择其他配置文件的端口 当有多个pr原创 2021-10-14 18:57:15 · 145 阅读 · 0 评论