springboot整合mybaties,配置druid数据库连接池报错
《dependency>报红:Failure to transfer com.alibaba:druid:jar:1.0.9 from http://localhost:8091/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced. Original error: Could not transfer artifact com.alibaba:druid:jar:1.0.9 from/to nexus-releases (http://localhost:8091/nexus/content/groups/public): The operation was cancelled.
运行后控制台报错:
Description:
Field usersService in com.bjsxt.controller.UsersController required a bean of type ‘com.bjsxt.service.UserService’ that could not be found.
Action:Consider defining a bean of type ‘com.bjsxt.service.UserService’ in your configuration.
原因:在加载数据库连接池的时候被打断。
解决办法:换一个版本的druid数据库连接池
从1.0.9换成1.1.10