12月2日 周日 ssm没有配置注解扫描报错

这篇博客讲述了在12月2日遇到的SSM(Spring+SpringMVC+MyBatis)项目中缺少注解扫描导致的错误,探讨了解决此类问题的方法。
摘要由CSDN通过智能技术生成
Dispatcher[org.springframework.web.servlet.DispatcherServlet] DispatcherServlet with name 'taotao-cart' processing处理 GET request for [/cart/1473655354.html]
拦截器[org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] Matching使…相配 patterns for request [/cart/1473655354.html] are [/**]
[org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] URI Template variables可变因素 for request [/cart/1473655354.html] are {}
[org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] Mapping [/cart/1473655354.html] to HandlerExecutionChain链条 with handler [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler@78f7e5e9] and 1 interceptor
[org.springframework.web.servlet.DispatcherServlet] Last-Modified改良的 value for [/cart/1473655354.html] is: -1
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Creating new transaction with name [com.taotao.cart.service.UserService.queryUserByToken]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Acquired获得的 Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8] for JDBC transaction
[org.springframework.jdbc.datasource.DataSourceUtils] Setting JDBC Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8] read-only
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Switching JDBC Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8] to manual手工的 commit遵守协议
[org.springframework.beans.factory.support.DefaultListable能列在单子上的BeanFactory] Creating instance实例 of bean 'org.apache.http.impl.client.CloseableHttpClient#0'
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached 缓存instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcut切入点Advisor顾问#0'
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'httpClientBuilder'
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0'
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Finished creating instance of bean 'org.apache.http.impl.client.Closeable可追的HttpClient#0'
[org.apache.http.client.protocol协议.RequestAddCookies] CookieSpec说明书 selected: best-match匹配
[org.apache.http.client.protocol.RequestAuthCache<电脑>快速缓冲贮存区] Auth cache not set in the context上下文
[org.apache.http.impl.conn.Pooling共用HttpClientConnectionManager] Connection request: [route途径: {}->http://sso.taotao.com:80][total总计 kept alive活着的: 0; route allocated分配: 0 of 20; total allocated: 0 of 200]
[org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection leased租用的: [id: 0][route: {}->http://sso.taotao.com:80][total kept alive: 0; route allocated: 1 of 20; total allocated: 1 of 200]
[org.apache.http.impl.execchain.MainClientExec执行] Opening connection {}->http://sso.taotao.com:80
[org.apache.http.impl.conn.HttpClientConnectionOperator运算符] Connecting to sso.taotao.com/127.0.0.1:80
[org.apache.http.impl.conn.HttpClientConnectionOperator] Connection established 已建立的127.0.0.1:56979<->127.0.0.1:80
[org.apache.http.impl.execchain.MainClientExec] Executing执行 request GET /service/user/TOKEN_af6ba6e13ffbc82b9321a8745a93f14a HTTP/1.1
[org.apache.http.impl.execchain.MainClientExec] Target目标 auth state: UNCHALLENGED无异议的
[org.apache.http.impl.execchain.MainClientExec] Proxy代理 auth state: UNCHALLENGED
[org.apache.http.headers(计算机打印时自动加在各页顶端的)标头] http-outgoing出发的-0 >> GET /service/user/TOKEN_af6ba6e13ffbc82b9321a8745a93f14a HTTP/1.1
[org.apache.http.headers] http-outgoing-0 >> Host: sso.taotao.com
[org.apache.http.headers] http-outgoing-0 >> Connection: Keep-Alive
[org.apache.http.headers] http-outgoing-0 >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5)
[org.apache.http.headers] http-outgoing-0 >> Accept接受-Encoding编码: gzip压缩程序,deflate紧缩
[org.apache.http.wire秘密引线] http-outgoing-0 >> "GET /service/user/TOKEN_af6ba6e13ffbc82b9321a8745a93f14a HTTP/1.1[\r][\n]"
[org.apache.http.wire] http-outgoing-0 >> "Host: sso.taotao.com[\r][\n]"
[org.apache.http.wire] http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
[org.apache.http.wire] http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
[org.apache.http.wire] http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[org.apache.http.wire] http-outgoing-0 >> "[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "Server: nginx/1.5.1[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "Date: Wed, 21 Nov 2018 09:50:38 GMT[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "Content-Type: application/json;charset=UTF-8[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "Transfer转让-Encoding: chunked分块 [\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "Connection: keep-alive[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "79[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "{"id":7,"username":"zhangsan","phone":"18888888888","email":"123@qq.com","created":1541511184000,"updated":1543498387000}[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "0[\r][\n]"
[org.apache.http.wire] http-outgoing-0 << "[\r][\n]"
[org.apache.http.headers] http-outgoing-0 << HTTP/1.1 200 OK
[org.apache.http.headers] http-outgoing-0 << Server: nginx/1.5.1
[org.apache.http.headers] http-outgoing-0 << Date: Wed, 21 Nov 2018 09:50:38 GMT格林尼治标准时间
[org.apache.http.headers] http-outgoing-0 << Content-Type: application/json;charset=UTF-8
[org.apache.http.headers] http-outgoing-0 << Transfer-Encoding: chunked分块 
[org.apache.http.headers] http-outgoing-0 << Connection: keep-alive
[org.apache.http.impl.execchain.MainClientExec执行] Connection can be kept alive indefinitely无限期地
[org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection [id: 0][route: {}->http://sso.taotao.com:80] can be kept alive indefinitely
[org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection released发布: [id: 0][route: {}->http://sso.taotao.com:80][total kept alive: 1; route allocated: 1 of 20; total allocated: 1 of 200]
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Initiating transaction commit
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Committing JDBC transaction on Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8]
[org.springframework.jdbc.datasource.DataSourceUtils] Resetting重拨 read-only flag of JDBC Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8]
[org.springframework.jdbc.datasource.DataSourceTransactionManager] Releasing发布 JDBC Connection [com.mysql.jdbc.JDBC4Connection@6c1e01f8] after transaction
[org.springframework.jdbc.datasource.DataSourceUtils] Returning JDBC Connection to DataSource
[org.springframework.web.servlet.DispatcherServlet] Null ModelAndView returned to DispatcherServlet with name 'taotao-cart': assuming傲慢的 HandlerAdapter completed完整的 request handling
[org.springframework.web.servlet.DispatcherServlet] Successfully completed request
[org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning返回 cached instance of singleton bean 'sqlSessionFactory'
没有配置注解扫描

走王者的道路,你注定要学会接受孤独

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值