![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 52
韩小洋
这个作者很懒,什么都没留下…
展开
-
【CAS单点登录】中途总结:Tomcat实现
官方文档:CAS - Home (apereo.github.io)https://apereo.github.io/cas/4.2.x/index.html学习地址:实战springboot+CAS单点登录系统_哔哩哔哩_bilibilihttps://www.bilibili.com/video/BV1xy4y1r7BU?p=7&spm_id_from=pageDriverWHY:CAS方便的实现了多个系统用一个认证中心一套账号系统统一登录.HOW:下载tomcat9.0包,解压.原创 2021-11-24 11:42:38 · 577 阅读 · 0 评论 -
IDEA Gradle崩溃爆红,依赖全部不见
先po解决方案来源:https://blog.csdn.net/qq_43592495/article/details/107175489idea跑了两个项目后崩溃了,任务管理器强制退出idea,再打开项目所有依赖爆红,注解无法使用解决方案:点下面那个按钮:清缓存退出,再打开就好了...原创 2021-01-20 15:34:15 · 2337 阅读 · 0 评论 -
涉及JSON的类型转换(JSON、JSONArray、JSONObject)
1、导依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.47</version> </dependency>2、创建POJO对象()public class M原创 2021-01-19 21:04:28 · 530 阅读 · 0 评论 -
在控制层controller中@NotEmpty和@NotBlank的用法
1、添加依赖(缺一不可) <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> </dependency> <dependency> <groupId>org.hibe原创 2021-01-19 20:04:56 · 2174 阅读 · 0 评论 -
@PathVariable和@RequestParam的区别:前者直接/访问,后者?XX=XX访问
@PathVariable:要在@GetMapping后面加上/{属性名}(会按顺序匹配属性值,如(@PathVariable int userId,@PathVariable StringuserName),则为(/show/1/xiaoming),匹配userId为1,userName为xiaoming的)@GetMapping("/show/{userId}") public UserRepresentation show(@PathVariable int userId){..原创 2020-12-31 17:02:56 · 130 阅读 · 0 评论 -
EUREKA报错:freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
Eureka启动后报错提示如下:freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:==> replica.key [in template "eureka/navbar.ftlh" at line 68, column 62]----Tip: It's the step after the last dot that caused this error, no.原创 2020-12-30 11:13:30 · 1187 阅读 · 0 评论 -
JAVA学习笔记一:在win10上配置环境变量,并且在DOS下运行HelloWorld程序
一、在win10上配置环境变量 1、在甲骨文官网下载适合自己电脑系统的java。https://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html2、傻瓜式安装,记住安装的路径因为后面在配置环境中还要用到,一般都在C盘的ProgamFiles这个文件中。3、直...原创 2019-03-22 17:19:10 · 306 阅读 · 0 评论