首先控制器--LoginController 1 /** 2 * 登录表单提交处理控制器 3 * @param user 4 * @param cpacha 5 * @param request 6 * @return 7 */ 8 @PostMapping("/login") 9 @Respons ...
分类:
编程语言 时间:
2020-04-29 23:53:53
阅读次数:
206
一、环境准备 JDK1.8 Maven3.6.1 IDEA 2018.1 springboot 最新版 二、创建第一个springboot项目 1.打开IDEA,选择创建项目 2.选择spring initializr,点击next 3.输入信息,点击next 4.选择依赖,这里添加spring w ...
分类:
编程语言 时间:
2020-04-29 23:25:07
阅读次数:
137
官方文档https://docs.spring.io/spring data/data mongodb/docs/current/reference/html/index.html 查询: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ...
分类:
数据库 时间:
2020-04-29 18:48:49
阅读次数:
67
官方文档https://docs.spring.io/spring-data/data-mongodb/docs/current/reference/html/index.html 查询: ******************************************************* ...
分类:
数据库 时间:
2020-04-29 18:16:00
阅读次数:
60
CAS 5.3.1系列之客户端对接(五) 我们要接入客户端可以常用第三方的库cas client autoconfig support来对接,比较快捷,迅速实现,或者可以用cas client support springboot集成到boot项目 pom配置: application.yml配置: ...
分类:
其他好文 时间:
2020-04-29 14:24:37
阅读次数:
159
最近在做一个项目,采用SpringBoot整合MybatisPlus开发,由于mapper.xml文件和mapper路径地址不一致,导致做单元测试报异常 application.yml配置如下: 写了个单元测试的代码: @RunWith(SpringRunner.class) @SpringBoot ...
分类:
移动开发 时间:
2020-04-29 12:34:09
阅读次数:
229
步骤 1 : xml方式 Springboot Mybatis SQL语句可以使用接口加注解的方式,也可以用xml的方式,所以本篇记录 xml 方式怎么做 步骤 2 : 可运行项目 本篇接着上一篇教程的项目操作~~: "mybatis接口+注解方式" :https://www.cnblogs.com ...
分类:
编程语言 时间:
2020-04-29 12:29:40
阅读次数:
77
使用springboot+dubbo搭建RPC入门案例 本文背景简述: 最近在学习公司的一套RPC框架,初步接触的时候感觉挺复杂的。但是知道其原理肯定是和dubbo很相似的,毕竟都是RPC框架嘛,只是各自使用的范围和使 用者群体有些不同罢了。于是就去dubbo官网熟悉了其相关文档和案例教程,然后结合 ...
分类:
编程语言 时间:
2020-04-28 23:15:25
阅读次数:
63
package com.llf.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.sp ...
分类:
编程语言 时间:
2020-04-28 22:58:20
阅读次数:
79
配置文件 ConfigurationProperties注解使用 作用读取yml配置文件中配置的属性,一一映射。 ConditionalOnExpression注解使用 作用匹配某些属性,作为判断bean加载条件。(表达式) ConditionalOnProperty注解使用 作用匹配某些属性,作为 ...
分类:
编程语言 时间:
2020-04-28 22:46:57
阅读次数:
73