irpas技术客

Try-with-resources are not supported at language level ‘5‘_想回家看看家

网络投稿 869

今天用mybatis写项目的时候在测试的时候报错 在网上搜了搜原因,好像是mybatis在你编译没有设置的时候默认是5 要进行强转 在父项目中pom.xml中在<build>中添加 解决方法 <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins>


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #are #not #Supported #at #Language #level #5