`
确实比较男
  • 浏览: 112410 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
项目地址:http://git.oschina.net/silentwu/monkey 使用手册:http://git.oschina.net/silentwu/monkey/wikis/home monkey简介 Monkey是一个JavaEE企业级项目的快速开发的框架,提供基于模版的代码生成器,也可以自定义模版,先通过代码生成器生成通用代码,在根据业务逻辑来完成功能。 可以帮助解决Java项目70%的重复工作,让开发更多关注业务逻辑。既能快速提高开发效率,帮助公司节省人力成本,同时又不失灵活性。 Monkey可以应用在任何J2EE项目的开发中,尤其适合企业信息管理系统(MIS)、内 ...
  1.  搭建spring-security的基本环境 2. spring-security 配置登录页面和退出url 3. Spring-security提供的认证方式(一) 4. Spring-security提供的认证方式(二) 5. spring-security实现Remember-Me 6. 会话管理Session Management 7. Spring security 访问权限控制 8. Spring-security核心拦截器
搭建的一个简单的J2EE开发框架   框架使用到的Java技术: 1. springmvc4   spring4    2. orm使用hibernate4    3. 安全框架使用shiro 4. 数据源使用druid 5. 整个框架使用maven管理 6. 缓存可以使用memcached,ehcached 7. 日志使用slf4j+log4j   项目下载地址:http://pan.baidu.com/s/1c0vvJxA J2EE开发框架搭建(1) - maven搭建多项目   J2EE开发框架搭建(2) - springmvc4 + spring4 + h ...
  参考文档:http://docs.spring.io/spring-boot/docs/1.4.2.RELEASE/reference/htmlsingle/   整理笔记:   01 Getting started.md 02 Using Spring Boot.md 03 Spring Boot Features.md 04 Deploying Spring Boot applications.md 05 Build tool plugins.md 06 ‘How-to’ guides.md 07 Spring Boot Actuator- Production ...
Keepalived安装 下载keepalived到/usr/local/src: http://www.keepalived.org/software/keepalived-1.2.20.tar.gz 解压:tar -zxvf keepalive-1.2.20.tar.gz 安装keepalived: ./configure –prefix=/usr/local/keepalived –sysconf=/etc make make install     Keepalived+Nginx实现双机热备 参考链接: http://blog.csdn.net/wanglei_storag ...
Window 64: 1.修改my-default.ini名称 ==> my.ini   [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important dat ...
最近做了一个电影分享的网站,计划主要放一些新上映的电影和一些有趣的视频,电影基本都是云盘地址,欢迎大家支持,如果没你需要的电影,欢迎来提问,我会努力的来找资源,找到会第一时间回复。   闲适悦:http://xianshiyue.com/          
MySQL5.7版本新特性  http://edu.ctfile.com/info/4Kc145348 性能优化之MySQL优化   http://edu.ctfile.com/info/r9W145354 Mysql学习资料PDF   http://edu.ctfile.com/info/cgc145192 MySQL5.7复制功能实战视频   http://edu.ctfile.com/info/me8145231    
(一) ExceptionTranslationFilter Spring-security的异常拦截器:这个拦截器只拦截AuthenticationException和AccessDeniedException异常,其他异常直接抛出 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpSer ...
GrantedAuthority 用户在认证成功后查询处理用户拥有的所有权限,Authentication中存储了用户的所有权限,spring-security的权限接口GrantedAuthority public interface GrantedAuthority extends Serializable { //字符串代表一个权限 String getAuthority() ...
手赚入口:http://szjx.top   HttpSessionEventPublisher 实现了HttpSessionListener接口,监听session的创建和销毁事件,通过ApplicationContext发布对应的事件HttpSessionCreatedEvent HttpSessionDestroyedEvent //监听session创建事件 public void sessionCreated(HttpSessionEvent event) { HttpSessionCreatedEvent e = new HttpSessionCreate ...
  RememberMeServices public interface RememberMeServices { //当用用户进行到系统未登录是自动登录 Authentication autoLogin(HttpServletRequest request, HttpServletResponse response); //在用户登录失败的时候调用 void loginFail(HttpServletRequest request, HttpServletResponse response); //在用户登录成功后调用 v ...
Spring-security默认提供的AuthenticationProvider   Spring –security 提供了很多AuthenticationProvider的实现了,这里是画出了spring-security默认采用的。   AbstractUserDetailsAuthenticationProvider 实现了AuthenticationProvider提供的authenticate和support方法。 在authenticate方法中做了如下的操作: 1.  根据用户提交的用户名从缓存中查询UserDetails 2.  若没有在缓存中查询到Use ...
  AuthenticationProvider   public interface AuthenticationProvider { Authentication authenticate(Authentication authentication) throws AuthenticationException; boolean supports(Class<?> authentication); }    该接口是开始认证的入口,传入用户输入的用户名密码到authenticate方法中进行验证,通过认证就返回用户完整的信息,若认证过程中有任何 ...
配置登录页面: 1. 修改security.xml中的form-login配置 <security:http> <security:intercept-url pattern="/**" access="ROLE_USER"/> <security:form-login login-page="/login.html" login-processing-url=&q ...
Global site tag (gtag.js) - Google Analytics