window安装tomcat启动后不能访问,catalina.out日志启动正常,localhost日志报错如下
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysCustomerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysCustomerAttrService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionAdvice': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in URL [jar:file:/D:/CreditSoft/ProgramFiles/tomcat7_rules/webapps/web/WEB-INF/lib/hr_core-0.0.1-SNAPSHOT.jar!/spring/spring-mybatis.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/D:/CreditSoft/ProgramFiles/tomcat7_rules/webapps/web/WEB-INF/lib/hr_core-0.0.1-SNAPSHOT.jar!/spring/spring-mybatis.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: com/mysql/jdbc/Driver : Unsupported major.minor version 52.0 (无法载入的.类 [
有可能是因为jdk版本太低的原因,可以升级一下jdk的版本
更换jdk版本:
(1)安装好jdk
(2)修改注册表:win+R调出运行-------输入regedit----HKEY_LOCAL_MACHINE-------SOFTWARE---------Apache Software Foundation----------Procrun 2.0------Tomcat62-----Parameters---------JAVA------双击jvm修改jdk的路径------保存重启tomcat即可
若:找不到Apache Software Foundation,可以找下SOFTWARE下的Wow6432Node 看是否有Apache