摘要: @Bean JedisConnectionFactory jedisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration ( 阅读全文
posted @ 2018-06-26 17:26 qwer78 阅读(351) 评论(0) 推荐(0)
摘要: new Date().getTime() 的值: 1529653514606 时间戳是:1529653514 Date date = new Date(时间戳 * 1000L); 即可 阅读全文
posted @ 2018-06-22 15:54 qwer78 阅读(586) 评论(0) 推荐(0)
摘要: ALTER TABLE circle_like ADD UNIQUE KEY(read_circle_id, user_id); try{ circleLikeService.insertSelective(circleLike); Map<String, Object> map = new Has 阅读全文
posted @ 2018-06-07 14:49 qwer78 阅读(42) 评论(0) 推荐(0)
摘要: package com.example.demo.web; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Element 阅读全文
posted @ 2018-05-22 16:44 qwer78 阅读(39) 评论(0) 推荐(0)
摘要: 这样配置多个, @Bean(name = “redisKeyDatabase”)别设置一样就行 package cc.aaa.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.ja 阅读全文
posted @ 2018-05-14 16:46 qwer78 阅读(43) 评论(0) 推荐(0)
摘要: 合理的调用了spuer.clone( )它就会返回一个被克隆的对象。在运行时刻,Object中的clone()识别出你要复制的是哪一个对象,然后为此对象分配空间,并进行对象的复制,将原始对象的内容一一复制到新对象的存储空间中。在这个克隆对象中,所有的属性都和被克隆的对象的属性相同,而这些相同的属性分 阅读全文
posted @ 2018-04-24 17:52 qwer78 阅读(35) 评论(0) 推荐(0)
摘要: redis多数据源 import cc.datebook.common.JsonResult; import cc.datebook.entity.BookInfo; import cc.datebook.enums.ResultCode; import cc.datebook.service.Bo 阅读全文
posted @ 2018-04-23 16:45 qwer78 阅读(380) 评论(0) 推荐(0)
摘要: 第一种: import cc.datebook.aop.LoginInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Config 阅读全文
posted @ 2018-04-16 15:07 qwer78 阅读(32) 评论(0) 推荐(0)
摘要: <root level="INFO"> <appender-ref ref="MYSQL" /> </root> <!--输出到mysql数据库的appender配置 --> <appender name="MYSQL" class="ch.qos.logback.classic.db.DBAppe 阅读全文
posted @ 2018-04-04 10:17 qwer78 阅读(177) 评论(0) 推荐(0)
摘要: 1 pom加依赖, 我的版本 <druid.version>1.1.6</druid.version> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>${druid.versio 阅读全文
posted @ 2018-03-26 15:55 qwer78 阅读(54) 评论(0) 推荐(0)