牧码

时间不多,道路很长

摘要: 异常:Description:A component required a bean of type ‘com.renqijie.dao.SellerMapper’ that could not be found.原因:dao类SellerMapper未加注... 阅读全文
posted @ 2019-03-14 17:53 脚印在泥泞路上 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: 记一次踩坑经历:Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: (was java.lang.NullPo... 阅读全文
posted @ 2019-03-14 11:52 脚印在泥泞路上 阅读(15601) 评论(0) 推荐(3) 编辑
摘要: CREATE TABLE `wx_user` ( `id` int(20) NOT NULL AUTO_INCREMENT, `openid` varchar(28) DEFAULT NULL COMMENT '小程序用户的openid', `nick... 阅读全文
posted @ 2019-03-13 10:07 脚印在泥泞路上 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: 语言名 关键字 Bash bash CoffeeScript coffeescript ... 阅读全文
posted @ 2019-03-12 18:00 脚印在泥泞路上 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 指令:cat /etc/redhat-releaseCentOS Linux release 7.5.1804 (Core) 阅读全文
posted @ 2019-03-12 10:38 脚印在泥泞路上 阅读(372) 评论(0) 推荐(0) 编辑
摘要: mongodb-driver是mongo官方推出的java连接mongoDB的驱动包,相当于JDBC驱动。通过一个入门的案例来了解mongodb-driver的基本使用:1、查询全部记录1.1、创建工程mongoDemo,引入依赖 org.mongodb m... 阅读全文
posted @ 2019-02-27 21:12 脚印在泥泞路上 阅读(2455) 评论(0) 推荐(0) 编辑
摘要: 1、在SpringBoot的启动类上添加注解@EnableCaching,开启SpringCache缓存支持@SpringBootApplication// 开启SpringCache缓存支持@EnableCachingpublic class Gather... 阅读全文
posted @ 2019-02-26 18:14 脚印在泥泞路上 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 连接MySQL数据库时抛出警告:Tue Feb 26 17:38:27 CST 2019 WARN: Establishing SSL connection without server's identity verification is not reco... 阅读全文
posted @ 2019-02-26 17:47 脚印在泥泞路上 阅读(3596) 评论(0) 推荐(0) 编辑
摘要: // 向redis里存入数据和设置缓存时间stringRedisTemplate.opsForValue().set("test", "100", 60 * 10, TimeUnit.SECONDS);// 根据key获取缓存中的valstringRedis... 阅读全文
posted @ 2019-02-26 17:30 脚印在泥泞路上 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1、导入redis的启动器 org.springframework.boot spring-boot-starter-data-redis2、在yml配置文件中配置redis连接信息spring: redis: host: 192.168.206.1... 阅读全文
posted @ 2019-02-26 16:30 脚印在泥泞路上 阅读(6226) 评论(0) 推荐(0) 编辑