ssm專案整合中遇到的tomcat啟動的時候報錯Error creating bean with name 'xxxController'
今天學習整合ssm專案在測試框架是否可用時,一執行maven的tomcat就報上面的錯誤,
一開始還以為是service層註解沒有寫好,後面檢查發現沒有錯誤,最後是在web.xml檔案中發現下面的param-value寫錯了,applicationContext-*.xml中application少了一個n。
<!-- 載入spring容器 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring/applicationContext-*.xml</param-value>
</context-param>
還有在事務切面中少了.
<aop:config>
<aop:advisor advice-ref="txAdvice"
pointcut="execution(* cn.itcast.e3mall.service..*.*(..))" />
</aop:config>
耗費了大量時間,最後解決了,希望可以幫到大家!
相關推薦
ssm專案整合中遇到的tomcat啟動的時候報錯Error creating bean with name 'xxxController'
今天學習整合ssm專案在測試框架是否可用時,一執行maven的tomcat就報上面的錯誤, 一開始還以為是service層註解沒有寫好,後面檢查發現沒有錯誤,最後是在web.xml檔案中發現下面的param-value寫錯了,applicationContext-*.xml
spring boot 專案 redis啟動報錯 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
先說一下解決辦法 修改配置redis.conf檔案 C:\Users\coffee>C:\Java\Redis-x64-3.2.100\redis-server.exe redis.conf 把redis.conf的配置檔案的註釋改為 # not
Spring boot 採用Cxf 整合WebService 執行報錯“Error creating bean with name 'endpoint' defined ”
Spring boot 採用Cxf 整合WebService 執行報錯“Error creating bean with name ‘endpoint’ defined ” 由於新專案的需要,專案框架採用Spring boot 1.5.13.RELEASE、j
springboot 啟動的時候報錯 Error creating bean with name 'solrClient'
springboot 啟動的時候報錯: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrClient' defined in class path resource [o
SSM使用高版本的spring(我用的5.0.8),報錯Error creating bean with name 'requestMappingHandlerAdapter' defined in
Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/web/servlet/config/annota
idea報錯 Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource
ror factory pojo mapped clas mes del strong per 核對一下控制器是不是寫了相同的路徑。。。org.springframework.beans.factory.BeanCreationException: Error crea
SpringCloud-Eureka報錯 Error creating bean with name解決
報錯:Error creating bean with name 解決辦法 在pom檔案中新增以下依賴 <!--Error creating bean with name 補丁依賴--> <dependency>
SpringMVC查詢出現500,報錯Error creating bean with name 'menuController': Injection of autowired dependency
解決方案:這是因為在service.impl包下的IEmpServiceImpl中沒有加@server,在控制層呼叫業務層, &n
PageHelper報錯Error creating bean with name sqlSessionFactory defined in class path resource
2017-08-17 21:20:16.618 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.springframework.web.context.ContextLoa
java報錯-->Error creating bean with name 'org.springframework.web.servlet.resource.ResourceHttpRequest
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servl
Spring Aop 報錯error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator
使用Spring Aop程式設計除了要加入Spring的spring-aop jar包,還要加入aspectjrt.jar,aspectjweaver.jar,以及aopalliance_1.0.jar,否則報錯: org.springframework.beans.fac
SSM時遇到的異常(1)——BeanCreationException: Error creating bean with name 'sqlSessionFactory
十二月 27, 2018 8:13:33 上午 org.apache.catalina.core.ApplicationContext log 嚴重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreation
SSM時遇到的異常(2)——BeanCreationException: Error creating bean with name 'empController'
JDK1.7+Tomcat7.0 十二月 27, 2018 2:22:43 下午 org.apache.catalina.core.ApplicationContext log 嚴重: StandardWrapper.Throwable org.springframework.b
spring cloud 測試的時候報 BeanCreationNotAllowedException: Error creating bean with name 'eurekaAutoServic
因為都能正確的跑測試方法,所以我也不太注意它,但是有時候閒得蛋疼就會找一下原因。具體原因我也說不清,直接丟個連線https://github.com/spring-cloud/spring-cloud-netflix/issues/1952裡面的一位叫@Component p
Mac下tomcat啟動報錯Error running 'Tomcat7.0.75': Cannot run program "/Volumes/Ma
Error running 'Tomcat7.0.75': Cannot run program "/Volumes/MacOS/Java/apache-tomcat-7.0.75/bin/catalina.sh" (in directory "/Volumes/MacOS/Java/
tomcat啟動報錯Error parsing HTTP request header The valid characters are defined in RFC 7230 and RFC 398
資訊: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.Il
啟動tomcat時候,Spring注入bean報錯:Error creating bean with name
當遇到這種問題的時候,本能的反應就是是不是沒有掃描到該bean物件,該bean物件有沒有加註解。 而網上的普遍解決方案一般都是說spring配置檔案有問題,掃描不到該包;還有一些解決方案比較細節,不具有概括性,比如component元件的類用抽象類(眾所周知,抽象類無法例項
maven專案新增Gson的依賴後無法啟動,報錯BeanCreationException:Error creating bean with name 'gsonBuilder'
具體錯誤如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gsonBuilder' defined in class path
SSM整合報錯:Error creating bean with name 'sqlSessionFactory' defined in file...
搭建SSM,遇到錯誤如下: 警告: Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.Bean