随笔分类 -  spring

摘要:http://blog.csdn.net/zaq123q/article/category/1062716 阅读全文
posted @ 2012-05-26 17:06 张良 阅读(144) 评论(0) 推荐(0) 编辑
摘要:http://www.ibm.com/developerworks/cn/opensource/os-cn-spring-jpa/index.html?ca=drs-http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/http://static.springsource.org/spring-data/data-jpa/docs/1.0.0.M2/reference/html/zhang的笔记http://sishuok.com/forum/blogPost/list/2625.html 阅读全文
posted @ 2012-04-06 16:38 张良 阅读(217) 评论(0) 推荐(0) 编辑
摘要:http://sarin.iteye.com/blog/829738 阅读全文
posted @ 2012-04-06 16:20 张良 阅读(216) 评论(0) 推荐(0) 编辑
摘要:http://java.dzone.com/articles/springmvc3-hibernate-crud 阅读全文
posted @ 2012-04-06 15:52 张良 阅读(223) 评论(0) 推荐(0) 编辑
摘要:我的项目情况如下: 1、使用Springmvc 3.0.5 Hibernate3.5.6 JPA,配置persistence.xml使用mysql; 2、使用Dao、Daosupport,Service、ServiceBean,web.xml中,使用OpenEntityManagerInViewFilter; 3、在使用Junit4做单元测试时,保存数据可以通过,但是控制器中,无法保存数据,错误如下: --控制器中先执行了一次查询操作,这是操作完成的提示: DEBUG org.hibernate.loader.Loader:(Loader.java:1966) - done en... 阅读全文
posted @ 2012-04-06 10:35 张良 阅读(1501) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/xfworld/article/details/3997755#comments 阅读全文
posted @ 2012-04-06 06:57 张良 阅读(117) 评论(0) 推荐(0) 编辑
摘要:spring security控制权限的几种方法 分类: spring security 2012-02-11 10:38 99人阅读 评论(0) 收藏 举报使用Spring Security3的四种方法概述那么在Spring Security3的使用中,有4种方法:一种是全部利用配置文件,将用户、权限、资源(url)硬编码在xml文件中,已经实现过,并经过验证;二种是用户和权限用数据库存储,而资源(url)和权限的对应采用硬编码配置,目前这种方式已经实现,并经过验证。三种是细分角色和权限,并将用户、角色、权限和资源均采用数据库存储,并且自... 阅读全文
posted @ 2012-04-02 08:38 张良 阅读(57637) 评论(2) 推荐(4) 编辑
摘要:http://hanqunfeng.iteye.com/blog/1157022 阅读全文
posted @ 2012-03-29 10:21 张良 阅读(256) 评论(0) 推荐(0) 编辑
摘要:Spring Security应用实例(一):用户登录博客分类:身份验证SecuritySpring应用服务器BeanHibernate经过Spring Security官方文档及相关资料的学习,自己做了一个简单的用户登录模块,现在将自己写的代码整理处理,以供大家参考或交流,如有不对,请指正错误。1、库表建立 1)用户表Sql代码 DROPTABLEIFEXISTS`users`;CREATETABLE`users`(`id`int(10)NOTNULLauto_increment,`login_name`varchar(20)defaultNULL,`password`varchar(20) 阅读全文
posted @ 2012-03-26 13:25 张良 阅读(3879) 评论(1) 推荐(0) 编辑
摘要:http://jinnianshilongnian.iteye.com/ 阅读全文
posted @ 2012-03-24 06:26 张良 阅读(185) 评论(0) 推荐(0) 编辑
摘要:用到的jarspring-context.jar mail.jar spring-core.jar activation.jar commons-logging.jar1:简单邮件 简单邮件中是可以实现邮件群发的功能的,区别是收件人可以是一个数组。packagecom; importorg.springframework.mail.SimpleMailMessage; importorg.springframework.mail.javamail.JavaMailSenderImpl;/*** 本类测试简单邮件* @author sunny**/ publicclassSingleMailSe 阅读全文
posted @ 2012-03-22 16:30 张良 阅读(655) 评论(0) 推荐(0) 编辑
摘要:http://www.redsaga.com/spring_ref/2.5/html_single/ 阅读全文
posted @ 2012-03-03 20:40 张良 阅读(216) 评论(0) 推荐(0) 编辑
摘要:JavaMail API为Java提供了邮件发送和接受服务,支持常见的邮件协议 SMTP IMAP POP3,发送纯文本邮件Java代码publicclassMain{publicstaticvoidmain(String[]args)throwsAddressException,MessagingException{//直接使用JavaMailAPI:Propertiesprops=newProperties();//设置SMTP服务器:props.put("mail.smtp.host","smtp.gmail.com");props.put(&qu 阅读全文
posted @ 2012-03-03 19:15 张良 阅读(609) 评论(0) 推荐(0) 编辑
摘要:Part 1: Introduction to Spring 3.0 MVC frameworkPart 2: Create Hello World Application in Spring 3.0 MVCPart 3: Handling Forms in Spring 3.0 MVCPart 4: Spring 3 MVC Tiles Plugin Tutorial with Example in EclipsePart 5: Spring 3 MVC Internationalization & Localization Tutorial with Example in Ecli 阅读全文
posted @ 2012-03-01 08:03 张良 阅读(400) 评论(0) 推荐(0) 编辑
摘要:Spring 3.0 注解注入详解2011-04-15 09:44 17ZOUGUO ITEYE博客我要评论(1)字号:T|TAD:一、各种注解方式1.@Autowired注解(不推荐使用,建议使用@Resource)@Autowired可以对成员变量、方法和构造函数进行标注,来完成自动装配的工作。@Autowired的标注位置不同,它们都会在Spring在初始化这个bean时,自动装配这个属性。要使@Autowired能够工作,还需要在配置文件中加入以下Xml代码<beanclass="org.springframework.beans.factory.annotation. 阅读全文
posted @ 2012-03-01 07:33 张良 阅读(677) 评论(0) 推荐(0) 编辑
摘要:spring3.0.5的mvc使用(exception,json,annotation,xml,upload/download)博客分类:springMVCSpringlog4jServletXML 由于公司的项目要使用spring的mvc,所以特意写了这个教程,与大家分享。在这里我只给出思路和源代码,不做过多的代码粘贴,请大家自行消化理解。 demo代码中,包含了exception,json,annotation,xml等诸多mvc的用法,为了更好的体验,请下载最高版本的demo代码。 一 环境 1)tomcat6.0.32 2)jdk1.6.0.24 3)eclipse3.6.2_ja.. 阅读全文
posted @ 2012-02-24 20:00 张良 阅读(697) 评论(0) 推荐(0) 编辑
摘要:http://stsmedia.net/spring-finance-part-4-spring-js-dojo-bean-validation/ 阅读全文
posted @ 2012-02-23 16:53 张良 阅读(605) 评论(0) 推荐(0) 编辑
摘要:【一】Spring应用Spring支持json格式的jarjackson-all-1.7.3http://jackson.codehaus.org/Spring MVC 3.x annotated controller的几点心得体会(最优化使用http://www.javaeye.com/topic/828513)一、callback回调template method(模板方法设计模式)-hibernateTemplate二、JPA2.0的配置src/META-INF/persistence.xmlwebContent/META-INF/context.xmlwebContent/WEB-IN 阅读全文
posted @ 2012-02-22 16:02 张良 阅读(2106) 评论(0) 推荐(0) 编辑
摘要:http://www.mkyong.com/spring-mvc/spring-mvc-file-upload-example/http://technopaper.blogspot.com/2009/03/multiple-file-upload-using-restful-web.htmlhttp://cxf.apache.org/docs/jax-rs-multiparts.htmlhttp://ltalbot.wordpress.com/2010/04/21/file-upload-using-rest-spring-mvc/http://www.mkyong.com/webservi 阅读全文
posted @ 2012-02-22 08:19 张良 阅读(342) 评论(0) 推荐(0) 编辑
摘要:http://maestric.com/doc/java/springhttp://static.springsource.org/docs/Spring-MVC-step-by-step/ 阅读全文
posted @ 2012-02-22 08:16 张良 阅读(185) 评论(0) 推荐(0) 编辑