springboot Environment注入异常
2017-04-17 00:00
253 查看
##error
##fix
原因是有bean命名为environment跟spring的重复了,需要改一下
##doc
Consider defining a bean of type 'org.springframework.core.env.Environment' in your configuration
*************************** APPLICATION FAILED TO START *************************** Description: Field environment in com.xxx.Environment required a bean of type 'org.springframework.core.env.Environment' that could not be found. Action: Consider defining a bean of type 'org.springframework.core.env.Environment' in your configuration.
##fix
原因是有bean命名为environment跟spring的重复了,需要改一下
##doc
Consider defining a bean of type 'org.springframework.core.env.Environment' in your configuration
相关文章推荐
- spring boot: 一般注入说明(四) Profile配置,Environment环境配置 @Profile注解
- SpringBoot Mybatis注入异常
- 解决Spring boot使用Quartz时Job中无法注入Bean 空指针异常问题
- spring boot jsp之Intellij异常
- 笔记--Spring Boot中解析yml配置 注入到对象
- Spring AOP操作action时无法注入,报NullPointer异常
- Spring 注解Autowired自动注入bean异常解决
- spring 继承的baseDao无法注入导致异常的问题
- Springboot自定义异常处理
- Spring-Boot 统一异常处理
- SPRING IN ACTION 第4版笔记-第三章ADVANCING WIRING-006-给bean运行时注入值(Environment,Property文件)
- (16)Spring Boot使用Druid(编程注入)【从零开始学Spring Boot】
- Struts Action 属性初始化 注入Spring DAO导致java.lang.NoClassDefFoundError异常
- IntelliJ IDEA运行Spring Boot异常
- spring boot获取注入的实例bean
- SpringBoot添加Email发送功能及常见异常
- spring默认注入方式引起的异常
- Spring配置中关于注入的一个异常解决方案
- 一个Spring Bean配置文件注入时的异常:TypeMismatchException
- (5)全局异常捕捉【从零开始学Spring Boot】