This is your own reference Springside Integration Framework for open source projects. The main integration of spring, Spring MVC, Spring data JPA, hibernate several frameworks, still feel more comfortable in these frameworks spring data JPA the framework, the framework for writing DAO class time, only need to write an interface declaration, Spring data JPA will be the active implementation of the fact that the class, the use of more convenient, as for the specific use of Baidu, as I do not know.
Personal feeling another good thing is that you can print SQL statements, and you know that hibernate-printed SQL statements do not take a number of parameters, but instead directly a question mark. Finding problems is very difficult to find. However, after using LOG4JDBC, you can print the SQL statements 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 tool classes in project, and that's not yet sorted out. Just put it there, wait for a chance to finish it and then send a version.
There is no specific configuration for these integrated things. It should not be very difficult. When you have the time, then the specific introduction.
Finally, the sample code is attached: http://download.csdn.net/detail/mengxiangyue/8034541
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Java (sample Integration Framework Spring, Spring MVC, Spring data JPA, hibernate)