07 2021 档案
摘要:1.在各个模块的resource下建立多yml,格式application-XXX.yml,如: 2.在父pom.xml中,添加: <!--profiles 管理多配置文件--> <profiles> <!--dev--> <profile> <id>dev</id> <properties> <p
阅读全文
摘要:1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> </dependency> 2.自定义属性类,使用
阅读全文
摘要:Note that a WebApplicationInitializer is only needed if you are building a war file and deploying it. If you prefer to run an embedded web server then
阅读全文
浙公网安备 33010602011771号