会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YouAreABug
博客园
首页
新随笔
联系
订阅
管理
[置顶]
文章目录
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2018-12-04 19:06 YouAreABug
阅读(17)
评论(0)
推荐(0)
2019年1月3日
@RequestMapping中设置为json格式
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2019-01-03 09:47 YouAreABug
阅读(7)
评论(0)
推荐(0)
2018年12月30日
Spring Boot
该文被密码保护。
阅读全文
posted @ 2018-12-30 23:55 YouAreABug
阅读(2)
评论(0)
推荐(0)
2018年12月28日
Redis配置
摘要: /*Redis*/ @Bean public RedisConnectionFactory redisConnectionFactory() { return new JedisConnectionFactory(); } /*redis模板*/ /* @Bean public RedisTemplate redisTe...
阅读全文
posted @ 2018-12-28 21:20 YouAreABug
阅读(255)
评论(0)
推荐(0)
Redis Cache
摘要: /*以下的方法都可以使用*/ public List select() { try { Jedis jedis = new Jedis(); String key = "newss"; //jackson内置的对象有序列化和反序列化的方法 ObjectMapper ob...
阅读全文
posted @ 2018-12-28 21:18 YouAreABug
阅读(230)
评论(0)
推荐(0)
2018年12月27日
Spring Data - Hibernate的配置
摘要: //相当于sqlSessionFactoryBean这个类的配置 @Bean(name = "entityManagerFactory") public LocalContainerEntityManagerFactoryBean localContainerEntityManagerFactoryBean(DataSource dataSource) { Loc...
阅读全文
posted @ 2018-12-27 15:10 YouAreABug
阅读(195)
评论(0)
推荐(0)
2018年12月24日
启动两个Redis服务
摘要: 启动两个Resdis实例 首先如果我们开了,redis-cli我们先关闭,然后开启三个cmd命令窗口; 第一步: 第二步: 第三步: 这样就可以启动连个redis服务了,试试看
阅读全文
posted @ 2018-12-24 22:30 YouAreABug
阅读(1960)
评论(0)
推荐(0)
2018年12月20日
Spring配置Java Style
摘要: 子容器的配置:创建SpringMVCConfig类 父容器的配置:创建RootConfig、SpringDAOConfig、SpringServiceConfig web.xml: 改为定义了一个WebConfig SpringMVCConfig: SpringDAOConfig: SpringSe
阅读全文
posted @ 2018-12-20 22:10 YouAreABug
阅读(168)
评论(0)
推荐(0)
2018年12月18日
Spring (Aspect Oriented Programming)的配置
摘要: 1、如果对一个对象的方法进行扩充(不改变源码的情况之下,增加或修改行为)的话,一般使用代理模式: 2、如果直接写代理生成也麻烦了,所以,基于动态代理,产生了 AOP 的编程思想。这里的*扩充*指的是功能分离,实现解耦 3、实际中,基于代理实现的 AOP 方案有很多,比如: 4、Spring AOP
阅读全文
posted @ 2018-12-18 20:09 YouAreABug
阅读(149)
评论(0)
推荐(0)
2018年12月15日
CSS-box立体图型
摘要: 1 2 3 4 5 6
阅读全文
posted @ 2018-12-15 22:51 YouAreABug
阅读(261)
评论(0)
推荐(0)
2018年12月14日
Spring注解、
摘要: ## 一、Spring 常用的注解 @Bean @Import @ImportResource @Configuration @ComponentScan @Component @Controller @Service @Reposi...
阅读全文
posted @ 2018-12-14 23:26 YouAreABug
阅读(169)
评论(0)
推荐(0)
下一页
公告