前后端分离解决跨域问题----后端解决
摘要:解决办法: 新建一个配置类,实现 WebMvcConfigurer 接口,重写 addCorsMappings方法。 spring boot 2.4之前的写法: @Configuration public class CrossConfig implements { @Override public
阅读全文
posted @
2020-12-29 18:51
A_yun
阅读(145)
推荐(0)
项目中使用mybatis报错:对实体 "serverTimezone" 的引用必须以 ';' 分隔符结尾。
摘要:报错信息如下: Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### Cause: org.apache.ibatis.build
阅读全文
posted @
2020-05-30 10:57
A_yun
阅读(900)
推荐(0)
idea报错cannot resolve symbol servlet
摘要:解决方法:在project structure中导入包。该包在tomcat安装目录的lib文件夹。导入之后点击Apply。
阅读全文
posted @
2020-05-27 15:37
A_yun
阅读(389)
推荐(0)
servlet web项目连接数据库报错
摘要:报错信息类似这样: Wed May 27 14:15:54 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL
阅读全文
posted @
2020-05-27 14:29
A_yun
阅读(226)
推荐(0)