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

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.ParameterMap

Caused 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.ParameterMap

Caused 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.ParameterMap


Caused 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就直接报错启动不了了,请问是什么原因啊?找了大半天了

慕斯卡1434949
浏览 2597回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java