Java Framework Consolidation examples (Spring, spring MVC, Spring data JPA, hibernate)

Source: Internet
Author: User
Tags what sql

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.