04 2023 档案

摘要:SpringBoot项目使用Junit进行单元测试 环境:Springboot 2.6.7 POM.xml文件 添加如下内容: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start 阅读全文 »
posted @ 2023-04-25 22:34 zolmk 阅读(117) 评论(0) 推荐(0) 编辑
摘要:使用Maven-shade-plugin打包SpringBoot项目 另附参考文章:https://blog.csdn.net/u011441473/article/details/127844885 好奇葩的打包之旅,最后在stack overflow上找到了解决办法,遇到问题,还是多去googl 阅读全文 »
posted @ 2023-04-22 18:34 zolmk 阅读(882) 评论(0) 推荐(0) 编辑
摘要:Spring Boot Security (三) 之前的随笔(https://www.cnblogs.com/zolmk/p/14074227.html)简单的使用了Spring Boot Security,没有深入。 一、主要内容 这篇主要的应用场景为前后端分离,前端Vue,后端Spring Bo 阅读全文 »
posted @ 2023-04-22 16:52 zolmk 阅读(168) 评论(0) 推荐(0) 编辑
摘要:解决方案 直接在Controller接口方法参数中写入org.springframework.security.core.Authentication,如下: @GetMapping(path = "/test") public Mono<Response<?,?>> test(Authentica 阅读全文 »
posted @ 2023-04-20 21:02 zolmk 阅读(209) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <release> 阅读全文 »
posted @ 2023-04-02 19:12 zolmk 阅读(24) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示