12 2019 档案
摘要:贴上aop配置 import com.alibaba.fastjson.JSONObject; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.aspect
阅读全文
摘要:背景:目前需要前端需要从B系统中获取数据,请求先发送到A系统,然后由A系统使用Feign调用B系统的接口,由于调用B系统时需要将请求的用户相关信息一起带到B系统,所以是用的Feign的请求拦截对其进行请求头复制 以下是请求头复制的拦截器 package cn.rivamed.hvc.filter;
阅读全文
摘要:mysql使用distinct(关键)+ order by + group 查询成绩表中每个学生时间最近的成绩数据 sql初始化 -- -- 主机: 127.0.0.1 -- 服务器版本: 8.0.15 - MySQL Community Server - GPL -- 服务器操作系统: Win64
阅读全文
摘要:支持pom包 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.1.1</version> </dependency> <depende
阅读全文
摘要:如果mapper没有在resource目录下需要在pom文件build标签中添加以下代码 <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*</include> </inc
阅读全文
摘要:问题浮现 新增配置 package cn.rivamed.common.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configur
阅读全文
摘要:1.使用 if not exists判断增加字段是否存在 IF NOT EXISTS(SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=(SELECT database()) AND table_name='t_trans_sur
阅读全文
摘要:1.在t_trans_surgery_info 表中保存其他关联表的冗余字段 drop TRIGGER if EXISTS auto_set_value; CREATE TRIGGER auto_set_value BEFORE INSERT ON t_trans_surgery_info FOR
阅读全文
摘要:1.第一步,新建两个简单的springboot项目并创建rest接口 demo系统的rest接口 plus系统的调用接口 2.在项目pom文件里导入feign和hystrix的pom依赖包 <properties> <java.version>1.8</java.version> <spring-c
阅读全文