上一页 1 ··· 4 5 6 7 8
摘要: @SpringBootTest class Demo1ApplicationTests { @Autowired private RedisTemplate redisTemplate; @Autowired private StringRedisTemplate stringRedisTempla 阅读全文
posted @ 2020-01-03 16:53 pkuokuo 阅读(2243) 评论(0) 推荐(0)
摘要: 我们都知道SpringBoot下利用@Autowired可以自动加载Spring容器中的类对象,但是今天在连接Redis时遇到了一些问题。 方法一: 1、构建Springboot的web工程 2、构建好项目后在pom文件中添加依赖 <dependency> <groupId>org.springfr 阅读全文
posted @ 2020-01-03 14:33 pkuokuo 阅读(1225) 评论(0) 推荐(0)
摘要: 在操作Redis时会使用RedisTemplate与StringRedisTemplate,但是这两者的区别呢? 其一:两者的数据各自存取,不互通 RedisTemplate不能取StringRedisTemplate存放的数据 StringRedisTemplate不能取RedisTemplate 阅读全文
posted @ 2020-01-03 13:57 pkuokuo 阅读(1307) 评论(0) 推荐(0)
摘要: 1-1、导包 导入SpringMVC、Spring、MyBatis、mybatis-spring、mysql、druid、json、上传和下载、验证的包 1-2、创建并配置web.xml文件 配置spring的ContextLoaderListener及Spring的前段控制器、CharacterE 阅读全文
posted @ 2019-12-03 10:56 pkuokuo 阅读(598) 评论(0) 推荐(0)
摘要: 一、SpringBoot与SpringDateJPA的整合 1-1、需求 查询数据库 >得到数据 >展示到页面上 1-2、整合步骤 1-2-1、创建SpringBoot工程 具体步骤查看我上一篇随笔 https://www.cnblogs.com/pengpengdeyuan/p/11798804. 阅读全文
posted @ 2019-11-05 20:35 pkuokuo 阅读(1424) 评论(0) 推荐(1)
上一页 1 ··· 4 5 6 7 8