- 博客(12)
- 收藏
- 关注
原创 spring boot拦截器 过滤器
1.拦截器 登录拦截 自定义拦截路径 //全局配置继承WebMvcConfigurer接口 @Configuration public class MyHandler implements WebMvcConfigurer { //这里要引入loginHandler自己的拦截器 @Autowired private LoginHandler loginHandler; //重写addInterceptors @Override public void
2021-06-23 09:37:13
690
原创 冲冲冲冲冲
1、冲冲冲 目录 1、冲冲冲 在IDEA中使用 2、Decimal的计算(合同金额精度缺失,可以采用 bigdecimal ) 3、模板设计模式 4、Try{}catch(Exception e){} (图片失败房间租凭合同和客户身份证上传失败 可以使用重试机制) 5、事务(租房合同保存失败,数据不完整 进行业务规则校验和使用事务) 6、跨域(前后端分离 cookie 跨域,页面跨域,后台配置 cors) 7、内存溢出 7、 部署 八、Redis实现重复提交 Redis实现...
2021-06-10 19:44:42
297
原创 身份证号正则验证
工具类使用方法 public static boolean isCard(String numCard){ String regularExpression = "(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)"; ..
2021-06-10 09:02:40
116
原创 vue项目部署和spring boot项目部署
vue涉及到一个跨域vue.config.js或者config/index.js里吧跨域中配置的反向代理localhost改成部署的ip和端口号,如果在后端springboot
2021-06-09 18:50:25
229
原创 bigdecimal的使用
使用实例 BigDecimalprice =vegtables.getPrice(); 加法new一个BigDecimal对象里面
2021-06-09 18:27:09
236
原创 前后端分离Cookie跨域处理
找到vue里main.js把允许Cookie axios.defaults.withCredentials=true Springboot后端处理
2021-06-09 16:35:00
128
原创 vue前端vue.config.js配置跨域问题处理
module.exports = { devServer: { //以上的ip和端口是我们本机的;下面为需要跨域的 proxy: { '/api': { // 拦截以 /api 开头的接口 target: 'http://localhost:8081/',//设置你调用的接口域名和端口号 别忘了加http changeOrigin: true, //这里true表示实现...
2021-06-09 16:29:22
976
原创 编号唯一mysql脚本
drop PROCEDURE if EXISTS getSequence; drop TABLE if EXISTS tb_sequence; create PROCEDURE getSequence(in nus BIGINT) begin DECLARE seqid BIGINT DEFAULT 0; DECLARE datet VARCHAR(50) DEFAULT ''; create table if not EXISTS tb_sequence( `i...
2021-06-09 16:26:14
105
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅