随笔分类 - 遇到的几个错误
摘要:解决:Error:java: 无效的源发行版: 12
解决的方法是:
1.shift+ctrl+alt+s打开Project Structure,找到Project Settings下的Project,将Project SDK下的框修改为1.8版本
2.在Modules选择你的项目->选择你的jdk版本为8
3.File->Setting:查找java compiler->Target bytecode version 修改为8(你的jdk版本,同样注意父级项目)
4.重新启动
阅读全文
摘要:org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [oracle.xdb.XMLTypeFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
阅读全文
摘要:maven build 的时候报错 Could not find artifact pom:001-SNAPSHOT 异常
阅读全文
摘要:错误示范: 解决方法: 在 <!doctype html> 下加入下面这个标签: <!--suppress ALL--> 修改之后:
阅读全文
摘要:不多说,直接上排查方法: 步骤1、pom 引入 依赖mybatis-spring-boot-starter2、启动类中 注解扫描mapper接口@MapperScan(basePackages = "com.xxx.mapper") 3、配置文件application.properties中介入xm
阅读全文
摘要:问题描述: 首先说明自己出现上述原因是因为在mapper接口上方用的是@mapper标签,如果用@Repository标签替换可以解决这个问题 (idea可以理解Spring的上下文。然而 UserMapper 这个接口是Mybatis的,IDEA理解不了。 而 @Autowired 注解,默认情况
阅读全文
摘要:解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题
阅读全文
摘要:Error:java: Annotation processing is not supported for module cycles.
阅读全文
摘要:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection;
阅读全文
摘要:java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer异常
这个异常非常容易理解,String类型的数据转换为Integer,出错了。
如果发生这个异常,仔细检查你在应该填写数字的地方有没有填写除数字以外的字符。
在填写配置文件的时候容易出现这种错误,比如在应该填接口等数字的时候,你填了别的字符串。
阅读全文
摘要:eclipse总是提示update error reports Database,进度一直卡着不动
解决方案:
Window--->Preferences--->General--->Startup and Shutdown--->取消Eclipse Automated Error Reporting
然后apply,重新启动eclipse,进度条就消失了.
阅读全文

浙公网安备 33010602011771号