确实比较男
确实比较男 · 共 57 篇文章
[置顶] JAVA二次开发框架 Monkey
项目地址: http://git.oschina.net/silentwu/monkey 使用手册: http://git.oschina.net/silentwu/monkey/wikis/home monkey简介 Monkey是一个JavaEE企业级项目的快速开发的框架,提供基于模版的代码生成器,也可以自定义模版,先通过代码生成器生成通用代码,在根据业务逻辑来完成功能。 可以帮助解决Java项目70%的重复工作,让开发更多关注业务逻辑。既能快速提高开发效率,帮助公司节省人力成本,同时又不失灵活性。 Monkey可以应用在任何J2EE项目的开发中,尤其适合企业信息管理系统(MIS)、内部…
2016-11-09 11:24 · J2EE框架搭建 · 评论(2)
[置顶] spring-security学习目录
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核心拦截器
2015-07-15 14:31 · spring-security · 评论(0)
[置顶] J2EE开发框架搭建目录
搭建的一个简单的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 + hibernate4 整合 J2EE开发框架搭建(3) -…
2014-10-02 18:47 · J2EE框架搭建 · 评论(1)
spring boot 学习笔记
参考文档 : 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-ready features…
2016-11-21 10:05 · Spring · 评论(0)
Keepalived安装 Keepalived+Nginx实现双机热备
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_storage/articl…
2016-07-19 12:09 · 其他 · 评论(0)
MySQl 5.7 初始化方式变更
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 data integrity …
2016-07-02 14:53 · 数据库 · 评论(0)
做的电影分享网站
最近做了一个电影分享的网站,计划主要放一些新上映的电影和一些有趣的视频,电影基本都是云盘地址,欢迎大家支持,如果没你需要的电影,欢迎来提问,我会努力的来找资源,找到会第一时间回复。 闲适悦: http://xianshiyue.com/
2016-06-22 17:00 · 其他 · 评论(0)
MySQL5.7实战视频教程
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
2016-06-01 12:14 · 数据库 · 评论(0)
Spring-security核心拦截器
(一) ExceptionTranslationFilter Spring-security的异常拦截器:这个拦截器只拦截AuthenticationException和AccessDeniedException异常,其他异常直接抛出 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpSe…
2015-05-26 10:59 · spring-security · 评论(0)
Spring security 访问权限控制
GrantedAuthority 用户在认证成功后查询处理用户拥有的所有权限,Authentication中存储了用户的所有权限,spring-security的权限接口GrantedAuthority public interface GrantedAuthority extends Serializable { //字符串代表一个权限 String getAuthority(); } AccessDecisionManager 权限校验器Manager,判断用户是否用权限 public interface AccessDecisionManager { //authentication …
2015-05-26 10:47 · spring-security · 评论(0)
会话管理Session Management
手赚入口: http://szjx.top HttpSessionEventPublisher 实现了HttpSessionListener接口,监听session的创建和销毁事件,通过ApplicationContext发布对应的事件HttpSessionCreatedEvent HttpSessionDestroyedEvent //监听session创建事件 public void sessionCreated(HttpSessionEvent event) { HttpSessionCreatedEvent e = new HttpSessionCreatedEvent(event.…
2015-05-25 11:22 · spring-security · 评论(0)
spring-security实现Remember-Me
RememberMeServices public interface RememberMeServices { //当用用户进行到系统未登录是自动登录 Authentication autoLogin(HttpServletRequest request, HttpServletResponse response); //在用户登录失败的时候调用 void loginFail(HttpServletRequest request, HttpServletResponse response); //在用户登录成功后调用 void loginSuccess(HttpServletRequest…
2015-05-25 11:02 · spring-security · 评论(0)
Spring-security提供的认证方式(二)
Spring-security默认提供的AuthenticationProvider Spring –security 提供了很多AuthenticationProvider的实现了,这里是画出了spring-security默认采用的。 AbstractUserDetailsAuthenticationProvider 实现了AuthenticationProvider提供的authenticate和support方法。 在authenticate方法中做了如下的操作: 1. 根据用户提交的用户名从缓存中查询UserDetails 2. 若没有在缓存中查询到UserDetails,那么就调…
2015-05-25 10:35 · spring-security · 评论(0)
Spring-security提供的认证方式(一)
AuthenticationProvider public interface AuthenticationProvider { Authentication authenticate(Authentication authentication) throws AuthenticationException; boolean supports(Class<?> authentication); } 该接口是开始认证的入口,传入用户输入的用户名密码到authenticate方法中进行验证,通过认证就返回用户完整的信息,若认证过程中有任何的错误,就直接抛出AuthenticationExcept…
2015-05-25 10:20 · spring-security · 评论(0)
spring-security 配置登录页面和退出url
配置登录页面: 1. 修改security.xml中的form-login配置 <security:http> <security:intercept-url pattern="/**" access="ROLE_USER"/> <security:form-login login-page="/login.html" login-processing-url="/login" username-parameter="username" password-parameter="password" default-target-url="/index.html"/> <security:log…
2015-05-25 09:53 · spring-security · 评论(0)