为了账号安全,请及时绑定邮箱和手机立即绑定

tomcat 报错 UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryController'

tomcat 报错 UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryController'

慕斯卡1434949 2019-08-26 16:58:41
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryController': Unsatisfied dependency expressed through field 'itemCategoryService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryService': Unsatisfied dependency expressed through field 'itemCategoryMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryMapper' defined in file [C:\project\server\apache-tomcat8-ce\webapps\ROOT\WEB-INF\classes\com\tool\ce\item\mapper\ItemCategoryMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties': Could not bind properties to 'MybatisProperties' : prefix=mybatis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis.configuration.parameter-maps[0]' to org.apache.ibatis.mapping.ParameterMapCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryService': Unsatisfied dependency expressed through field 'itemCategoryMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryMapper' defined in file [C:\project\server\apache-tomcat8-ce\webapps\ROOT\WEB-INF\classes\com\tool\ce\item\mapper\ItemCategoryMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties': Could not bind properties to 'MybatisProperties' : prefix=mybatis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis.configuration.parameter-maps[0]' to org.apache.ibatis.mapping.ParameterMapCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemCategoryMapper' defined in file [C:\project\server\apache-tomcat8-ce\webapps\ROOT\WEB-INF\classes\com\tool\ce\item\mapper\ItemCategoryMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties': Could not bind properties to 'MybatisProperties' : prefix=mybatis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis.configuration.parameter-maps[0]' to org.apache.ibatis.mapping.ParameterMapCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties': Could not bind properties to 'MybatisProperties' : prefix=mybatis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'mybatis.configuration.parameter-maps[0]' to org.apache.ibatis.mapping.ParameterMap请问大神在idea上启动就没有问题,代码也能正常运行,可是打包成war放到服务器上的tomcat就直接报错启动不了了,请问是什么原因啊?找了大半天了
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 2606 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信