دریافت مستندات کد نویسی مبتنی بر j2ee

جهت دریافت مستندات کد نویسی مبتنی بر j2ee بر روی لینک زیر کلیک کنید : دریافت مستندات + عکس


و برای دیافت کد های مربوط به این پروژه از لینک زیر میتوانید استفاده کنید : دریافت سورس کد



download complete CRUD application using SpringMVC + Hibernate

Add, Edit, Delete, Search using Spring, Hibernate, MySQL

 

1. Setup a Dynamic Web project and convert it to maven project

2. Add the dependencies - be sure to clean install in maven to put your needed jars in the project so you won't have library issue while coding

3. Setup the database

4. Create model class - add JPA annotations

5. Create DAO components - @Repository

6. Create Service components - @Service

7. Create Controller component - @Controller

 - be sure to put BindingResult immediately after @ModelAttribute or else you will got issues

8. Create the View components - JSPs

9. Configurations

- jdbc.properties

- spring-servlet.xml

- log4j.xml

- hibernate.cfg.xml

- finally web.xml

10. Clean compile

 

Download Source Code

View output

منابع :

 چه جوری از URI در لایه کنترل استفاده کنیم

چه جوری واسه فرم ولیدیشن یه کلاس بنویسیم و چه جوری اون رو سرویس کنیم

چه جوری سطرهای گرید رو شناسایی کنیم

سوال :

چه جوری دوتا کانکشن درست کنیم

 

ANT + JUNIT + LOG4J

For learning log4j , plz visit these web site :

http://www.avajava.com/tutorials/categories/logging

http://veerasundar.com/blog/2009/07/log4j-tutorial-adding-log4j-logging-to-your-project/

For downloading jar files related to log4j , please visit this website :

For learning Ant, plz visit this web site :

http://www.avajava.com/tutorials/categories/ant

For downloading jar files related to Ant , please visit this website :

http://ant.apache.org/bindownload.cgi

For learning how to install Ant on windows , please visit this website :

http://www.nczonline.net/blog/2012/04/12/how-to-install-apache-ant-on-windows/

 

For learning JUnit4, plz visit this web site :

http://www.mkyong.com/tutorials/junit-tutorials/

http://www.vogella.com/articles/JUnit/article.html

For downloading jar files related to JUnit, please visit this website :

http://junit.org/