19-Apr-2020 22:35:04.895 警告 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\asus\IdeaProjects\permission\target\permission\WEB-INF\classes\mapper\SysAclMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.mmall.model.SysAcl'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mmall.model.SysAcl
19-Apr-2020 22:35:04.902 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\asus\IdeaProjects\permission\target\permission\WEB-INF\classes\mapper\SysAclMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.mmall.model.SysAcl'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.mmall.model.SysAcl
19-Apr-2020 22:35:04.909 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
19-Apr-2020 22:35:04.910 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
19-Apr-2020 22:35:04.924 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
19-Apr-2020 22:35:04.924 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
19-Apr-2020 22:35:10.703 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\develop\apache-tomcat-8.5.31\webapps\manager]
19-Apr-2020 22:35:10.741 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\develop\apache-tomcat-8.5.31\webapps\manager] has finished in [38] ms
Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext.xml]
翻译:在类路径资源[applicationContext.xml]中定义名为’sqlSessionFactory’的bean时出错
Cause: java.lang.ClassNotFoundException: Cannot find class: com.mmall.model.SysAcl
翻译:原因:. lang。ClassNotFoundException:找不到class: com.mmall.model.SysAcl
错误原因是:类没有找到异常,Javabean的原因。mybatis需要JavaBean实体类对应数据库。