随笔分类 - JAVA
摘要:BeanPostProcessor bean实例化顺序有关,@Configuration会最先实例化,也就是在spring启动完成之前。 导致Configuration中使用的注入,没能在spring中被代理 还不晓得怎么搞,因为我要重写shirofilter
阅读全文
摘要:Spring Cloud Feign:用于微服务之间,只映射内网ip Spring Cloud Gateway:用于服务端,对外开放的接口,对外统一访问gateway映射的ip 是这样吗? 但是这样权限如何控制? 还得再想想
阅读全文
摘要:网上教程不少,有些就是复制粘贴,不结合实际生产。 eureka不再阐述。 一般正常开发会有多个工程,且多个module。 我的习惯是: eureka server、权限、config、gateway 这类插件放在一个工程 Server 其它实际业务 Client Client中会存在于多个modul
阅读全文
摘要:加包扫描 @MapperScan()
阅读全文
摘要:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisTemplate' defined in class path resource [com/zhangdi/dem
阅读全文
摘要:遇到的情况是 redis timeout时间设置过短(我设置成0了),默认多少也查不到
阅读全文
摘要:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redisConnectionFactory' defined in class path resou
阅读全文
摘要:集合在单线程,一个循环内,有添加又删除会出现此异常。 多线程时,在不同的循环操作同一个集合,会出现此异常。 因为,集合长度发生改变时,在迭代器未结束前,迭代器的大小不会发生变化。 1、保证在同一个进程 或 锁 2、保证迭代中只有一种操作 3、集合.remove() 每次迭代只能remove一个元素
阅读全文
摘要:1、用到的jar包:fastjson-1.2.9、poi(poi-3.15、poi-ooxml-3.15、poi-ooxml-schemas-3.15、xmlbeans-2.6.0、commons-collections4-4.1) 很简单,直接上代码: 2、导出类,两个WrapAll类字符串数组都
阅读全文

浙公网安备 33010602011771号