摘要: #!/bin/sh ## java env export JAVA_HOME=/usr/local/jdk/jdk1.8.0_101 export JRE_HOME=$JAVA_HOME/jre API_NAME=api JAR_NAME=$API_NAME\.jar #PID 代表是PID文件 P 阅读全文
posted @ 2023-12-26 17:06 咔咔皮卡丘 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 名词:masternodeproddeploymentservicereplicas 调度过程:Kubernetes Client将请求发送给API ServerApi Server根据请求的类型,将处理的结果存入高可用键值存储系统Etcd中Scheduler将未分发的Pod绑定(bind)到可用的 阅读全文
posted @ 2023-12-26 17:03 咔咔皮卡丘 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、Mysql查询某个表的字段名 select COLUMN_NAME from information_schema.COLUMNS where table_name = 'business_info'; 2、生成数据字典 select TABLE_SCHEMA,TABLE_NAME,COLUMN 阅读全文
posted @ 2023-10-16 16:27 咔咔皮卡丘 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 在spring boot中,可以通过以下两种方式实现统一版本的管理: 1、通过标签<parent> 如: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</arti 阅读全文
posted @ 2023-08-21 16:48 咔咔皮卡丘 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 注:会导致spring缓存对象不可用,是类加载器错误导致的 方法1 引入依赖(此方法对于方法、类的新建都能实现热加载,依赖要) crtl+shift-alt+/ 勾上compiler.automake.allow.when.app.running就可以实时热加载,不勾就当build的时候才会加载 < 阅读全文
posted @ 2023-08-21 16:46 咔咔皮卡丘 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.自增长主键 <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.fenqi.pojo.DidaUser"> insert IGNORE into dida_user (id, real_n 阅读全文
posted @ 2023-08-21 16:07 咔咔皮卡丘 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Spring Social OAuth 一、app、小程序、前后端分离为什么使用OAuth协议 1、原有方法开发繁琐、安全性和客户体验差、有些前端技术不支持cookei,如小程序 2、好处:token自动生成,自定义校验,方便安全 二、Spring Security OAuth简介 1、服务提供商( 阅读全文
posted @ 2023-08-21 11:35 咔咔皮卡丘 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Spring Social 一、OAuth协议: 在不向第三方应用提供账号、密码的情况下,允许其访问资源所有者特定资源所使用的协议,例如微信授权登录。 最常用的有 授权码模式、密码模式 二、Spring Social基本原理: 1、SocialAuthenticationFilter将其拦截下来,并 阅读全文
posted @ 2023-08-18 17:27 咔咔皮卡丘 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Spring Security 一、默认配置 1、默认会对所有请求都需要进行认证与授权; 2、默认使用httpBasic方式进行登录 3、默认的用户名为user,密码在启动应用时在console中有打印 4、自定义配置: package com.imooc.security.browser; imp 阅读全文
posted @ 2023-08-18 10:56 咔咔皮卡丘 阅读(69) 评论(0) 推荐(0) 编辑
摘要: RESTful 一、JsonPath 1、github:https://github.com/json-path/JsonPath 二、@JsonView使用步骤(用于解决同一个对象在不同的接口返回的字段不同的场景) 1、使用接口来声明多个视图2、在值对象的get方法上指定视图3、在Controll 阅读全文
posted @ 2023-08-18 10:24 咔咔皮卡丘 阅读(129) 评论(0) 推荐(0) 编辑