This is your own reference to the Springside Open source Project Integration Framework, the main integration of spring, Spring MVC, Spring data JPA, hibernate these frameworks, for these frameworks it feels more comfortable or spring data JPA this framework, when writing the DAO class, only need to write an interface declaration, spring data JPA will automatically implement its implementation class, use it more convenient, as for the detailed use of the method also please Baidu, because I do not know. Personal feeling there is a better place to be able to print SQL statements, all know that Hibernate printing SQL statement will not take the parameters, but instead of directly a question mark, it is difficult to find the problem, but the use of LOG4JDBC after the SQL statement can be printed directly. In addition I have configured the output of the log, using the Logback framework.
In the configuration:
Applicationcontext.xml Spring configuration file
Log4jdbc.properties LOG4JDBC configuration file for configuring what SQL statement to output
Logback.xml Configuration of log output
There are a lot of tools in the project, that is not tidy up, directly put it there, and so on after the opportunity to finish and then send a version.
For these integrated things are not detailed configuration, it should not be difficult, and so when there is time to introduce in detail.
Finally attach the example code: http://download.csdn.net/detail/mengxiangyue/8034541
Java Framework Consolidation examples (Spring, spring MVC, Spring data JPA, hibernate)