上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 48 下一页
  2020年3月13日
摘要: 在微服务监控平台的项目中,领导为了运维更加简单,也是考虑到该系统没有涉及到太多的业务,要求使用sqlite数据库。 这个数据库我也是第一次使用,上手不难,与mysql的语法基本一致,有一些的函数操作不太一样,但是不难修改。 其实在刚开始了解这个的数据库的时候我并不觉的这个数据库是适合我们这个项目的, 阅读全文
posted @ 2020-03-13 10:17 song.yan 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1,思考以下程序的输出结果 @Test public void test1() throws Exception { Integer num1 = 1; Integer num2 = 2; System.out.println(num1+" : "+num2); sweap(num1,num2); 阅读全文
posted @ 2020-03-13 09:50 song.yan 阅读(244) 评论(0) 推荐(0) 编辑
  2020年3月4日
摘要: .text-flow-ellipsis-multiple { /* 多余内容省略号处理-多行 */ word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; 阅读全文
posted @ 2020-03-04 15:27 song.yan 阅读(7083) 评论(0) 推荐(1) 编辑
  2020年2月28日
摘要: 在最近开发的微服务监控平台中,页面的打开速度,查询速度较慢,因此考虑给系统加上了缓存机制。 原因分析: (1)系统为了部署简单方便,选择了轻量级数据库sqlite。但是该数据库并不支持并发写操作,所以我们采取了抽数数据库服务,以RestFul接口的方式完成数据库的操作,但因此也就增大了网络开销,降低 阅读全文
posted @ 2020-02-28 10:41 song.yan 阅读(230) 评论(0) 推荐(0) 编辑
  2020年2月27日
摘要: package com.googosoft.gateway_zuul; import java.lang.management.ClassLoadingMXBean; import java.lang.management.CompilationMXBean; import java.lang.ma 阅读全文
posted @ 2020-02-27 19:04 song.yan 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 步骤: (1)读取zuul的配置文件,获取路由配置项信息; private static Properties props; static { String fileName = "application.properties"; props = new Properties(); try { pr 阅读全文
posted @ 2020-02-27 18:46 song.yan 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: Spring Boot项目指定启动后执行的操作: (1)实现CommandLineRunner 接口 (2)重写run方法 (3)声明执行顺序@Order(1),数值越小,优先级越高 (4)如果需要注入service或者component等类,再加上@Component注解 package com. 阅读全文
posted @ 2020-02-27 18:35 song.yan 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 在做Zuul网关日志处理的时候,有以下需求: (1)记录请求成功的日志,要求记录请求返回的结果。 遇到的问题: (1)当请求的结果事对象时,会将其转成字符串,在put进map的时候,字符串就会被转义 (2)请求的结果不一定的对象,也可能时数字或者字符串 public static String ge 阅读全文
posted @ 2020-02-27 18:28 song.yan 阅读(2618) 评论(0) 推荐(0) 编辑
  2020年2月25日
摘要: 在数据同步方式中,对于一些无法监听数据变更,或者数据变更太频繁的,我采用了定时器定时更新缓存数据的方式,例: @Scheduled(fixedRate = 1000) public void getCurrentDate() { List<Map<String, Object>> instanceL 阅读全文
posted @ 2020-02-25 06:55 song.yan 阅读(708) 评论(0) 推荐(0) 编辑
  2020年2月17日
摘要: package com.googosoft.db.aspect; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.*; import org.springframework.stereot 阅读全文
posted @ 2020-02-17 11:00 song.yan 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 48 下一页