error
***************************
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的重复了,需要改一下