上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 38 下一页
摘要: Linux环境:centos6.7 修改/etc/resolv.conf重启之后自动还原,主要因为resolv.conf文件是由/etc/sysconfig/network-scripts/ifcfg-eth0生成的。 方法一:修改/etc/sysconfig/network-scripts/ifc 阅读全文
posted @ 2021-06-17 23:04 浅笑19 阅读(4978) 评论(0) 推荐(1)
摘要: 设置网路ip等后 需要重启网路服务 debian: /etc/iinit.d/networking restart centos7: service network restart or systemctl start network.service 开始从工作中找乐趣 阅读全文
posted @ 2021-06-16 17:32 浅笑19 阅读(427) 评论(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 阅读(163) 评论(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 阅读(524) 评论(0) 推荐(0)
摘要: @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket createRestApi() { ParameterBuilder aParameterBuilder = new ParameterBu 阅读全文
posted @ 2021-06-11 10:09 浅笑19 阅读(1918) 评论(0) 推荐(1)
摘要: 分层领域模型规约: DO( Data Object):与数据库表结构一一对应,通过DAO层向上传输数据源对象。 DTO( Data Transfer Object):数据传输对象,Service或Manager向外传输的对象。 BO( Business Object):业务对象。 由Service层 阅读全文
posted @ 2021-06-11 10:08 浅笑19 阅读(219) 评论(0) 推荐(0)
摘要: 代码如下: @Bean public Docket docket(Environment environment) { // 设置要显示的swagger 环境 Profiles p = Profiles.of("dev","test"); // 通过environment.acceptsProfil 阅读全文
posted @ 2021-06-10 10:27 浅笑19 阅读(569) 评论(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 阅读(621) 评论(0) 推荐(0)
摘要: 详情请移步:https://www.jianshu.com/p/7b7e757cc753 阅读全文
posted @ 2021-06-10 10:21 浅笑19 阅读(163) 评论(0) 推荐(0)
摘要: IService使用 service层需要继承IService,当然实现层也要继承对应的实现类。 /** * <p> * 用户 服务类 * </p> * * @author IT贱男 * @since 2019-06-14 */ public interface UserService extend 阅读全文
posted @ 2021-06-10 10:19 浅笑19 阅读(3702) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 38 下一页