美文网首页
spring boot + mybatis +sql serve

spring boot + mybatis +sql serve

作者: 杨_be03 | 来源:发表于2019-06-10 11:07 被阅读0次

spring boot + mybatis +sql server 项目本地运行正常发布服务器报异常

com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [com.microsoft.sqlserver.jdbc.SQLServerDriver])

经过排查是属于 pom文件

<dependency>

<groupId>com.microsoft.sqlserver</groupId>

<artifactId>mssql-jdbc</artifactId>

<version>7.2.2.jre8</version>

<scope>test</scope>

</dependency>

其中 version jre用的是11 ,所以会报版本不兼容问题

相关文章

网友评论

      本文标题:spring boot + mybatis +sql serve

      本文链接:https://www.haomeiwen.com/subject/ncwaxctx.html