当前位置:   article > 正文

java.lang.IllegalStateException: No DataSource set

java.lang.illegalstateexception: no datasource set
  1. 八月 10, 2018 9:22:24 上午 org.apache.catalina.core.StandardWrapperValve invoke
  2. 严重: Servlet.service() for servlet [DispatcherServlet] in context with path [/spring.mvc] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: No DataSource set] with root cause
  3. java.lang.IllegalStateException: No DataSource set
  4. at org.springframework.util.Assert.state(Assert.java:73)
  5. at org.springframework.jdbc.support.JdbcAccessor.obtainDataSource(JdbcAccessor.java:77)
  6. at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:371)
  7. at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:446)
  8. at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:456)
  9. at org.springframework.jdbc.core.JdbcTemplate.queryForList(JdbcTemplate.java:484)
  10. at com.zzxt.spring.mvc.hello.entity.BankDaoImpl.getAllCardInfo(BankDaoImpl.java:86)
  11. at com.zzxt.spring.mvc.hello.action.HelloController.sayHi(HelloController.java:33)
  12. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  14. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  15. at java.lang.reflect.Method.invoke(Method.java:498)
  16. at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
  17. at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
  18. at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
  19. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877)
  20. at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783)
  21. at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
  22. at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
  23. at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
  24. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
  25. at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866)
  26. at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
  27. at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
  28. at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  29. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  30. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  31. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  32. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  33. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  34. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
  35. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
  36. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
  37. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/296594
推荐阅读
相关标签
  

闽ICP备14008679号