摘要: BufferedReader streamReader = new BufferedReader( new InputStreamReader(request.getInputStream(), "UTF-8"));StringBuilder responseStrBuilder = new Str 阅读全文
posted @ 2021-03-31 19:09 山兮木 阅读(2220) 评论(0) 推荐(0) 编辑
摘要: @ConditionalOnBean 仅仅在当前上下文中存在某个对象时,才会实例化一个Bean。 @ConditionalOnClass 某个class位于类路径上,才会实例化一个Bean @ConditionalOnExpression 当表达式为true的时候,才会实例化一个Bean。如:@Co 阅读全文
posted @ 2021-03-01 17:59 山兮木 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Collections.sort(chinas,((o1, o2) -> Collator.getInstance(Locale.CHINESE).compare(o1.getName(),o2.getName()))); 阅读全文
posted @ 2021-02-25 10:55 山兮木 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Spring 缓存注解是基于Spring AOP切面,必须走代理才能生效,同类调用或者子类调用父类带有缓存注解的方法时属于内部调用,没有走代理,所以注解不生效。 解决方法: 方式一:将缓存的方法抽离放到一个单独的类中,然后再在service的实现类中进行调用; 方式二:手动使用CacheManage 阅读全文
posted @ 2021-01-08 17:30 山兮木 阅读(3495) 评论(0) 推荐(0) 编辑
摘要: 基于注解的Redis缓存实现 1、加入redis依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependen 阅读全文
posted @ 2021-01-08 15:05 山兮木 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 首先我们假设主页面地址为:http://www.js8.in/mywork/crossdomain/index.html,我们要加载的内容是位于work.2fool.cn域名下的helloworld.txt。我们需要在主页面中设置document.domain为2fool.cn,然后主页面添加一个i 阅读全文
posted @ 2020-12-29 20:50 山兮木 阅读(474) 评论(0) 推荐(0) 编辑
摘要: alter table tablename add id serial 阅读全文
posted @ 2020-12-13 19:21 山兮木 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 转载地址:https://www.cnblogs.com/lixincloud/p/11831095.html#commentform 今年由于项目上需要给客户的流程管理系统进行升级,其中包含流程的可视化。于是在网上找一些可以用的轮子,考察了D3,js、GooFlow.js、G6-Editor等工具 阅读全文
posted @ 2020-11-26 17:21 山兮木 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: redisTemplate是Spring封装的一个比较强大的模板,方便在开发的时候操作redis缓存。Redis缓存一般能存的类型有String、List、Set、Hash、Zset。本篇主要介绍存List类型的相关操作 List常用操作 首先新建两个list用来做后面得举例操作,便于理解 List 阅读全文
posted @ 2020-11-07 14:41 山兮木 阅读(8354) 评论(0) 推荐(1) 编辑
摘要: Kafka 名词 解释 Producer 消息的生成者 Consumer 消息的消费者 ConsumerGroup 消费者组,可以并行消费Topic中的partition的消息 Broker 缓存代理,Kafka集群中的一台或多台服务器统称broker. Topic Kafka处理资源的消息源(fe 阅读全文
posted @ 2020-10-12 22:30 山兮木 阅读(93) 评论(0) 推荐(0) 编辑
/* 看板娘 */