An example of a simple learning Spring + Hibernate

xiaoxiao2021-03-06  41

I intend to write a simple business card management program to learn Spring, Hibernate, and learn the test driver development. In order to avoid web complex, I decided to write a program displayed on a console.

I wrote it today.

Myinfo.java, iuserdao.java, userdaolist.java

Userdaolisttest.java

Beans.xml

Environmental demand Spring.jar, junit.jar, commons-logging.jar

The program is small, the function is insignificant, but it is still three-layer structure, complete debugging.

Write the part of Hibernate tomorrow, the database is HSQLDB, and DBUnit is required.

If there is time, write a Struts interface.

Learn by doing is a correct learning method. Today I only used editplus, and I wrote the API and I feel very good. You can't over-rely on IDE.

Today, WebTest has made a simple website test and feel quite good.

转载请注明原文地址:https://www.9cbs.com/read-82956.html

New Post(0)