摘要: ```java @Aspect @Component @Slf4j public class ControllerAspact { @Pointcut("execution(public * com.example.controller..*.*(..))") public void requestLog() { } @Before("requestLog()"... 阅读全文
posted @ 2019-01-09 15:36 这谁顶着住啊 阅读(732) 评论(0) 推荐(0) 编辑
摘要: ```java public class JoddCache { private static final int CACHE_SIZE = 2; private final static Cache CACHE = new LRUCache(CACHE_SIZE); private JoddCache() { } /** * 缓存一个key... 阅读全文
posted @ 2019-01-09 15:33 这谁顶着住啊 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 实现spring 接口 通过使用 自定义注解来解析json数据(通过fastjson的jsonPath),支持多个参数( ) 自定义注解 参数解析器实现 配置 自定义参数解析器优先级低于spring提供的默认解析器,会被默认解析器处理 使用 阅读全文
posted @ 2019-01-09 15:32 这谁顶着住啊 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: 自定义序列化实现 接口 jsonp注解支持 fastjson已经内置了一个 接口的实现 我们只需要配置这个Bean就行了 阅读全文
posted @ 2019-01-09 15:29 这谁顶着住啊 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 安装 gogs 下载 [gogs download][1] 安装 1. 解压压缩包。 2. 使用命令 cd 进入到刚刚创建的目录。 3. 执行命令 ./gogs web,然后,就没有然后了。 安装mysql 略过,也可以直接用sqlite3 sql 新建库 create database defa 阅读全文
posted @ 2019-01-09 15:28 这谁顶着住啊 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 用 接口只能统一修改,要分开控制的话有多少个job就要有多少个实现。比较麻烦 配置线程池ThreadPoolTaskScheduler 封装实现 pojo java @Table(name = " ") @Data public class EcoScheduleJob implements Ser 阅读全文
posted @ 2019-01-09 09:46 这谁顶着住啊 阅读(6348) 评论(4) 推荐(0) 编辑
摘要: ```nginx ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # http://wiki.nginx.org/Pitfal... 阅读全文
posted @ 2019-01-09 09:41 这谁顶着住啊 阅读(1135) 评论(0) 推荐(0) 编辑