Java (sample Integration Framework Spring, Spring MVC, Spring data JPA, hibernate)

Source: Internet
Author: User
Tags what sql

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)

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.