上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 507 下一页
摘要: 解法一:只适合单线程环境(不好) package test; / @author xiaoping / public class Singleton { private static Singleton instance=null; private Singleton(){ } public sta 阅读全文
posted @ 2018-01-24 10:19 星朝 阅读(175) 评论(0) 推荐(0)
摘要: 一、导航 本节内容简介: 1. spring boot 配置文件,使用@SpringBootApplication注解 2. spring boot 修改Java版本 和项目编码 3. 一个标准的spring boot 代码结构 4. 查看当前项目自动配置了那些模块 5. 禁用自动配置 6. 自定义 阅读全文
posted @ 2018-01-24 09:33 星朝 阅读(591) 评论(0) 推荐(0)
摘要: 项目下载地址:http://download.csdn.NET/detail/aqsunkai/9805821 (一)在pom.xml中添加依赖: [html] view plain copy print?<properties>      阅读全文
posted @ 2018-01-23 17:27 星朝 阅读(509) 评论(0) 推荐(0)
摘要: 从3.1开始Spring引入了对Cache的支持。其使用方法和原理都类似于Spring对事物管理的支持。Spring Cache是作用在方法上的,其核心思想是:当我们在调用一个缓存方法时会把该方法参数和返回结果作为一个键值存放在缓存中,等到下次利用同样的参数调用该方法时将不再执行该方法,而是直接从缓 阅读全文
posted @ 2018-01-23 16:59 星朝 阅读(596) 评论(0) 推荐(0)
摘要: 前两节“Spring缓存抽象”和“基于注解驱动的缓存”是为了更加清晰的了解Spring缓存机制,整合任何一个缓存实现或者叫缓存供应商都应该了解并清楚前两节,如果只是为了快速的应用EhCache到Spring项目中,请直接前往第三节“Spring整合EhCache缓存”。 一、   阅读全文
posted @ 2018-01-23 16:58 星朝 阅读(369) 评论(0) 推荐(0)
摘要: 1、“ java.lang.IllegalStateException: @Bean method ShiroConfig.cacheManager called as a bean reference for type [org.apache.shiro.cache.ehcache.EhCache 阅读全文
posted @ 2018-01-23 15:34 星朝 阅读(994) 评论(0) 推荐(0)
摘要: Spring Boot 静态资源处理 Spring Boot 系列 Spring Boot 入门 Spring Boot 属性配置和使用 Spring Boot 集成MyBatis Spring Boot 静态资源处理 Spring Boot 配置排序依赖技巧 Spring Boot DevTool 阅读全文
posted @ 2018-01-23 14:09 星朝 阅读(268) 评论(0) 推荐(0)
摘要: 原文地址:https://www.cnblogs.com/tufujie/p/5738250.html IDEA 14.0.5 apache tomcat 8.0.32 步骤:File >New Project,在Java列表中勾选Web Application(3.1),点击Next 建立w 阅读全文
posted @ 2018-01-23 13:28 星朝 阅读(622) 评论(0) 推荐(0)
摘要: shrio 权限管理filterChainDefinitions过滤器配置 / Shiro 1.2.2内置的FilterChain @see =============================================================================== 阅读全文
posted @ 2018-01-23 11:27 星朝 阅读(227) 评论(0) 推荐(0)
摘要: 1 拦截器介绍    Shiro使用了与Servlet一样的Filter接口进行扩展;所以如果对Filter不熟悉可以参考《Servlet3.1规范》http://www.iteye.com/blogs/subjects/Servlet 3 1了解Filter的工作原理。首先下图 阅读全文
posted @ 2018-01-23 11:12 星朝 阅读(1434) 评论(0) 推荐(0)
上一页 1 ··· 436 437 438 439 440 441 442 443 444 ··· 507 下一页