摘要: /** * 验证起始时间是否为空和结束时间小于开始时间 * @param dateTimeDTO */ private void validaTimeAndLoadTimes(DateTimeDTO dateTimeDTO) { //取出开始时间和结束时间 LocalDateTime start = 阅读全文
posted @ 2022-09-01 16:57 Sentinel-163 阅读(716) 评论(0) 推荐(0) 编辑
摘要: /** * 自定义认证框架数据封装 */ @Data @ApiModel(value="自定义认证框架数据封装") public class AuthenticationInfo { /** * 用户id 可以是admin用户也可以是普通user用户id */ @ApiModelProperty(v 阅读全文
posted @ 2022-08-30 18:07 Sentinel-163 阅读(53) 评论(0) 推荐(0) 编辑
摘要: server: port: 9000 spring: application: name: gateway cloud: nacos: discovery: # 网关也是微服务的一部分所以也要注册到nacos server-addr: localhost:8848 gateway: # 开启动态路由 阅读全文
posted @ 2022-08-25 10:37 Sentinel-163 阅读(561) 评论(0) 推荐(0) 编辑
摘要: ###1.DCL 数据控制语言 1.创建用户:create user'zhansan'@'localhost' identified by '888666'; 2.授权用户:grant all on test.*to'zhansan'@'localhost'; 3.刷新权限:flush privil 阅读全文
posted @ 2022-07-06 20:53 Sentinel-163 阅读(46) 评论(0) 推荐(0) 编辑
摘要: /** * 集合遍历删除元素的方法 */ public class DeleteList { public static void main(String[] args) { //创建集合 ArrayList<String> list = new ArrayList<>(); list.add("m 阅读全文
posted @ 2022-06-11 15:29 Sentinel-163 阅读(340) 评论(0) 推荐(0) 编辑
摘要: ##1.maven的下载 官方下载链接:https://maven.apache.org/download.cgi 下载后解压到磁盘 注意:此处不建议放在C盘下,本教程放在D盘中创建文件夹maven D:MavenRepository\localRepositor ##2.环境变量的配置 2.1 点 阅读全文
posted @ 2022-06-10 13:45 Sentinel-163 阅读(84) 评论(0) 推荐(0) 编辑
摘要: /** *物体的碰撞检测方法 */ public class Aoo { protected int wideth; //对象的宽 protected int heigth; //对象的高 protected int x; //对象的X坐标 protected int y; //对象的X坐标 pub 阅读全文
posted @ 2022-05-20 20:54 Sentinel-163 阅读(227) 评论(0) 推荐(0) 编辑
摘要: spring微服务原著论文及汉化 原文官网地址: https://martinfowler.com/articles/microservices.html 微服务翻译连接地址: https://www.cnblogs.com/liuning8023/p/4493156.html 阅读全文
posted @ 2022-05-19 12:54 Sentinel-163 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 此操作是以windows10专业版操作系统为例,其他系统请参照oracle官方文档 一、JDK下载 官网(JDK8)下载:https://www.oracle.com/java/technologies/downloads/#java8-windows 根据自己的系统下载对应的版本 二.jdk的安装 阅读全文
posted @ 2022-05-18 18:18 Sentinel-163 阅读(295) 评论(0) 推荐(0) 编辑
摘要: /** * 需求:设计一个方法用于获取数组中元素的最大值 */ public class ArryDemo { public static void main(String[] args) { int[] arr = {23,30,52,56,89,568,123,2365,325}; int ma 阅读全文
posted @ 2022-04-22 13:59 Sentinel-163 阅读(1129) 评论(0) 推荐(0) 编辑