ch8_6_2的源码,部署运行后报错,Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘personDao’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘stringRedisTemplate’ **ailable,老师帮看看什么原因?
P119T,TestControllerIntegrationTests无法通过Junit,报404,不是预期的200. 但可以成功部署highlight_spring4到Tomcat(需要注析TestControllerIntegrationTests),请问这个是什么原因 ?
本书3.7测试(第67页),
spring-test的version ${spring-framework.version}即前面文章的4.1.6RELEASE,
junit的version为4.11,
我测试时无法通过,后来把${spring-framework.version} 全部换成4.3.76RELEASE,
junit的version换成4.12,测试才通过.
这个坑,我先帮忙填上了.
汪老师您好,书中147页注解 @ConfigurationProperties 中是没有 locations 这个属性的
com.wisely.highlight_spring4.ch3.aware.AwareConfig中的@ComponentScan(“com.wisely.highlight_spring4.ch2.aware”)有错误,应该是@ComponentScan(“com.wisely.highlight_spring4.ch3.aware”)
ch8_6_2的源码,部署运行后报错,Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘personDao’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘stringRedisTemplate’ **ailable,老师帮看看什么原因?