摘要: public class BaseOperationResource<Service extends BaseOperationService, Repository extends BaseRepository, QueryService, DTO extends BaseDTO> extends 阅读全文
posted @ 2022-07-12 17:42 CageNo 阅读(262) 评论(0) 推荐(0)
摘要: 1.启动模块和引用模块 pox都加入了一个maven的打包插件(用于设定启动的class)如下,导致引用的模块没有加载到启动模块的spring容器中,接口加载失败,swagger文档中找不到对应接口 <plugin> <groupId>org.springframework.boot</groupI 阅读全文
posted @ 2022-06-08 17:31 CageNo 阅读(1211) 评论(1) 推荐(0)
摘要: import lombok.Data;import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.context.annotation.Configurat 阅读全文
posted @ 2022-03-01 10:35 CageNo 阅读(2517) 评论(0) 推荐(0)
摘要: 1.exists关键字的应用 参考此链接 https://www.jb51.net/article/214634.htm Spring data jpa支持的关键字介绍 SampleJPQL snippet And findByLastnameAndFirstname … where x.lastn 阅读全文
posted @ 2022-01-06 11:39 CageNo 阅读(55) 评论(0) 推荐(0)
摘要: 1.使用dropNotNullConstraint删除字段不可为空约束 <changeSet id="20211228150935-change-1" author="CageZhao"> <dropNotNullConstraint tableName="c_05_content_apply" c 阅读全文
posted @ 2021-12-28 16:16 CageNo 阅读(163) 评论(0) 推荐(0)
摘要: @OneToMany注解的使用 实现一对多级联操作主表类@OneToMany(mappedBy = "contentApply",cascade = {CascadeType.ALL})@JsonIgnoreProperties(value = { "contentApply" }, allowSe 阅读全文
posted @ 2021-12-24 18:37 CageNo 阅读(164) 评论(0) 推荐(0)
摘要: 引用包<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-jpamodelgen</artifactId> <scope>provided</scope></dependency><dependency> <grou 阅读全文
posted @ 2021-12-21 16:36 CageNo 阅读(260) 评论(0) 推荐(0)
摘要: 调用方 添加如上图:标红参数及注解 被调用方 添加如上图:标红注解 阅读全文
posted @ 2021-08-30 18:58 CageNo 阅读(130) 评论(0) 推荐(0)
摘要: feign调用get方法如果请求参数为实体类 会隐式转换为post请求 解决方案 在请求参数上加上注解: @SpringQueryMap 阅读全文
posted @ 2021-08-20 17:29 CageNo 阅读(450) 评论(0) 推荐(0)
摘要: 添加引用<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-openfeign-core</artifactId> <version> 2.2.7.RELEASE</version></ 阅读全文
posted @ 2021-08-13 10:52 CageNo 阅读(139) 评论(0) 推荐(0)