随笔分类 - Spring Boot问题合集
Spring Boot在使用过程中遇到的一切问题及解决方法记录
摘要: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
阅读全文
摘要:<dependency> <!-- CGLib代理(例如为范围内的Bean创建的代理)将代理方法声明为final。 这将阻止Mockito正常运行,因为它无法在其默认配置中模拟或监视最终方法。 如果您要模拟或监视此类Bean,请通过将org.mockito:mockito-inline添加到应用程序
阅读全文
浙公网安备 33010602011771号