- 博客(8)
- 收藏
- 关注
原创 启动monitor数据监测失败 ‘mapperSqlSessionTemplate‘ that could not be found.
***************************APPLICATION FAILED TO START***************************Description:Field fullHourExtendMapper in xxx.xxx.xxx.monitor.collect.service.impl.CompletenessServiceImpl required a bean named 'mapperSqlSessionTemplate' that could no
2021-09-06 11:11:36
443
原创 hashset的基本用法
首先是student类的创建:public class Student { private String name; private int age; public Student(String name, int age) { this.name = name; this.age = age; } public Student(){} public String getName() { return name; }
2021-06-17 15:54:11
271
原创 获取当前路径
public class Path { public static void main(String[] args) { System.out.println(System.getProperty("user.dir")); }}
2020-12-29 09:37:47
60
1
原创 创建一个文件夹(文件)
创建文件夹public static void main(String[] args) throws IOException { String path = "D:\\hello\\world"; System.out.println(createNewFilePath(path)); String file = "D:\\hello\\world.md"; System.out.println(createNewFile(file));
2020-12-29 09:32:54
283
原创 写后端代码时出现Check your ViewResolver setup!
查了很多答案我发现我的问题是使用了@Controller而不是RestController换了就正常显示了这里是正常显示的swagger
2020-09-28 17:01:40
5043
原创 如何处理跨域问题(持续更新)
跨域问题出现的信号:‘http://localhost:9528’ has been blocked by CORS policy:a.跨域问题概念:前端服务于后端服务不在一台机器上或者端口不一致导致 为了JS的安全着想b.ip地址/域名一致c.端口号不一致d.请求协议不一致(ERR_SSL_PROTOCOL_ERROR)e.请求方式不一致 比如后端用post前端用getf.请求路径不一致g.后端服务器没有启动/重启微服务 ERR_CONNECTION_REFUSEDh.在接口忘记添加
2020-09-27 16:06:50
172
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人