BUG:
Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceController’: Unsatisfied dependency expressed through field ‘aService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘aServiceImpl’: Unsatisfied dependency expressed through field ‘aMapper’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘aMapper’ defined in file [D:\××\AMapper.class]: Cannot resolve reference to bean ‘testSqlSessionTemplate’ while setting bean property ‘sqlSessionTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSourceConfig’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘myprops.mysql.url’ in value “${myprops.mysql.url}”
解决方法:检查application配置文件 配置的spring.profiles.active是否为正确格式
正确格式:
可能的错误形式: