springboot通过@Profile注解配置不同环境

时间:2020-06-15 15:24:31
【文件属性】:
文件名称:springboot通过@Profile注解配置不同环境
文件大小:6KB
文件格式:RAR
更新时间:2020-06-15 15:24:31
springboot maven @Profile springboot+maven 加载不同环境 通过当前案例和之前的maven 打包加载不同环境的配置文件内容;配合spring的@Profile注解配置在对于的class或者@Bean注解的方法上;来通过觉得某个拦截或者Java代码类是否生效
【文件预览】:
boot-profiles
----pom.xml(2KB)
----.settings()
--------org.eclipse.m2e.core.prefs(90B)
--------org.eclipse.core.resources.prefs(191B)
--------org.eclipse.jdt.core.prefs(243B)
----src()
--------test()
--------main()
----.project(773B)
----.classpath(1KB)

网友评论