No bean named 'transactionManager' is defined

 

2016-10-20 23:27:17.771 INFO 7096 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-10-20 23:27:17.772 INFO 7096 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2016-10-20 23:27:17.823 INFO 7096 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

 

 

2016-10-20 23:23:17.290 ERROR 2804 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined: No matching PlatformTransactionManager bean found for qualifier 'transactionManager' - neither qualifier match nor bean name match!] with root cause

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined: No matching PlatformTransactionManager bean found for qualifier 'transactionManager' - neither qualifier match nor bean name match!
at org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactoryAnnotationUtils.java:100)
at org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactoryAnnotationUtils.java:56)
at org.springframework.transaction.interceptor.TransactionAspectSupport.determineQualifiedTransactionManager(TransactionAspectSupport.java:378)
at org.springframework.transaction.interceptor.TransactionAspectSupport.determineTransactionManager(TransactionAspectSupport.java:362)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:271)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy64.save(Unknown Source)

 

时间: 2025-01-30 09:54:26

No bean named &#39;transactionManager&#39; is defined的相关文章

sessionfactory-No bean named &amp;amp;#39;sessionFactory&amp;amp;#39; is defined

问题描述 No bean named 'sessionFactory' is defined 在加入spring security之后出现了下面的问题 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCrea

spring- No bean named &amp;amp;#39;shiroFilter&amp;amp;#39; is defined

问题描述 No bean named 'shiroFilter' is defined 要把shiro整合进入spring出现了这个错误,'shiroFilter' 这个bean已经定义过了的着急在线等.. 严重: Exception starting filter shiroFilterorg.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shiroFilter' is defined w

No bean named &amp;amp;#39;sysConfigDAO&amp;amp;#39; is defined

问题描述 No bean named 'sysConfigDAO' is defined 1SysConfigService.java ...... package com.lfyc.foundation.service.impl; @Transactional @Service ("SysConfigService") public class SysConfigService implements ISysConfigService { @Resource(name="s

spring mvc-No bean named &amp;amp;#39;sessionFactory&amp;amp;#39; is defined错误

问题描述 No bean named 'sessionFactory' is defined错误 运行时 报No bean named 'sessionFactory' is defined错误 我用的是Eclipse 然后是Spring MVC + Hibernate + Maven编写的0.0 解决方案 java 异常问题 No bean named 'sessionFactory' is defined:http://blog.csdn.net/mypurse/article/detail

sessionfactory-服务器启动时 No bean named &amp;amp;#39;sessionFactory&amp;amp;#39; is defined

问题描述 服务器启动时 No bean named 'sessionFactory' is defined ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); 每一次调用这个就会使hibernate建立一个连接池, 在applicationContext-hibernate.xml中有数据库连接信息,数据库表映射信息(sessionfacto

javaee-No bean named &amp;amp;#39;SQService&amp;amp;#39; is defined

问题描述 No bean named 'SQService' is defined 这个问题如何解决No bean named 'SQService' is defined??? 解决方案 先看一下有没有配置SQService这个bean,如果有的话,再看看是不是这个配置文件没有加载进来. 解决方案二: 缺少了需要引入的头文件?

spring-h、s整合问题:No bean named &amp;amp;#39;sessionFactory&amp;amp;#39; is defined

问题描述 h.s整合问题:No bean named 'sessionFactory' is defined 我用的是hibernate和spring整合,在beans.xml写了sessionFactory.在类里面调用@Resource时就报错了 @Resource(name="sessionFactory") public void setSessionFactory(SessionFactory sessionFactory) { this.sessionFactory = s

javascript-jquery如何设置一个动态创建的 $(&amp;amp;#39;#&amp;amp;#39;).append(&amp;amp;#39;&amp;amp;#39;)中的ID?并利用它

问题描述 jquery如何设置一个动态创建的 $('#').append('')中的ID?并利用它 就比如像这样的: <script type="text/javascript"> var number=0; function next(){ $('#showdata').append('<input class="number_showdata" id="showdataid'+number+'" type="tex

Error creating bean with name &amp;#39;sessionFactory&amp;#39; defined in ServletContext resource [/WEB-INF/applica

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoun