SpringBoot
学习啊学习啊
沙砾森森
沙砾他有好多好多想去做的事
展开
-
SpringBoot解决跨域问题
前后端分离的项目遇到前端访问跨域的问题解决措施:在springboot项目里创建 config包 并添加CorsConfig类import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springfram转载 2022-03-10 14:27:40 · 239 阅读 · 0 评论 -
java: 程序包org.junit.jupiter.api不存在
编译的时候出现了这样的错误鼠标放在 报错的 Test 上 按住 Alt+Enter 选择 Add ‘JUnit x.x.x’ to classpath,项目会自动导入相关依赖原创 2022-03-05 09:29:08 · 2052 阅读 · 0 评论 -
java: 程序包org.springframework.boot.test.context不存在
编译时出现了这样的错误在 pom.xml 下添加这样一条依赖 重启或者更新一下项目启动启动成功原创 2022-03-05 09:40:15 · 3303 阅读 · 2 评论 -
Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found
idea 中报错查看一下本地仓库有没有这里我是有这个文件的如果没有,只需要自己再这里加一个版本号让后等待idea自己下载 ,注意一定要先配置阿里云的镜像看编译器最下面没有进度条了之后重启idea就不会再飘红了...原创 2022-03-04 15:16:19 · 181 阅读 · 0 评论 -
Dependency ‘org.mybatis.spring.boot:mybatis-spring-boot-starter:‘ not found
Dependency ‘org.mybatis.spring.boot:mybatis-spring-boot-starter:’ not found整合mybatis时,添加的依赖一直飘红给出答主的解决方法https://blog.csdn.net/qq_45570838/article/details/105471518原创 2022-03-02 21:56:59 · 6612 阅读 · 0 评论