上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页
摘要: 设置网路ip等后 需要重启网路服务 debian: /etc/iinit.d/networking restart centos7: service network restart or systemctl start network.service 开始从工作中找乐趣 阅读全文
posted @ 2021-06-16 17:32 浅笑19 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 在pom文件中引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 编写AOP类,在类上使用@Aspec 阅读全文
posted @ 2021-06-11 15:58 浅笑19 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在实体类中添加@TableId注解: @Data public class DxApplication { @TableId(type = IdType.AUTO) private Long id; private String name; private Integer sort; } 在navi 阅读全文
posted @ 2021-06-11 10:12 浅笑19 阅读(498) 评论(0) 推荐(0) 编辑
摘要: @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket createRestApi() { ParameterBuilder aParameterBuilder = new ParameterBu 阅读全文
posted @ 2021-06-11 10:09 浅笑19 阅读(1676) 评论(0) 推荐(1) 编辑
摘要: 分层领域模型规约: DO( Data Object):与数据库表结构一一对应,通过DAO层向上传输数据源对象。 DTO( Data Transfer Object):数据传输对象,Service或Manager向外传输的对象。 BO( Business Object):业务对象。 由Service层 阅读全文
posted @ 2021-06-11 10:08 浅笑19 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 代码如下: @Bean public Docket docket(Environment environment) { // 设置要显示的swagger 环境 Profiles p = Profiles.of("dev","test"); // 通过environment.acceptsProfil 阅读全文
posted @ 2021-06-10 10:27 浅笑19 阅读(495) 评论(0) 推荐(0) 编辑
摘要: Maven依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency> <dependency> < 阅读全文
posted @ 2021-06-10 10:25 浅笑19 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 详情请移步:https://www.jianshu.com/p/7b7e757cc753 阅读全文
posted @ 2021-06-10 10:21 浅笑19 阅读(150) 评论(0) 推荐(0) 编辑
摘要: IService使用 service层需要继承IService,当然实现层也要继承对应的实现类。 /** * <p> * 用户 服务类 * </p> * * @author IT贱男 * @since 2019-06-14 */ public interface UserService extend 阅读全文
posted @ 2021-06-10 10:19 浅笑19 阅读(3533) 评论(0) 推荐(0) 编辑
摘要: 格式先这样吧,没精力整理了 Warning: couldn't open ppp database /var/run/ppp/pppd2.tdbpppd[6354]: pppd 2.4.5 started by root, uid 0Using interface ppp0Connect: ppp0 阅读全文
posted @ 2021-06-07 13:05 浅笑19 阅读(2201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 37 下一页