I want to create a web application using spring3.0 and java
I am new into software development.so may be you think my question is silly and i am sorry for that.
I want to create a web application using J2EE. i am planning to use sprin开发者_开发问答g 3.0 framework along with hibernate. for view i want to use freemarker and batabase i prefer postgresql. IDE i am using eclipse HELIOS. i can do the coding but the main problem is initial configuration before starting the development. so can any body help me how to configure what are the code needed in what xml files.I dont know how to configure all these thing i want to use annotation and MVC pattern so please any body know how i start please ans me.....Seems that you are really confuse about how to start, as i see you don't have that much expierice on web application (correct me if i'm wrong), first thing you need to do if to understand wether Java and specially a Spring architecture is your best options (or your only for that matter), there are a lot of easier way to build web application and trust me i love java but sometimes is just so big and with so many options about building anything (specially webapplication) that is really overwhelming.
Anyway if you are decide it to take a Spring 3.x for building your web application you migh wanna start with the basic a typical architecture like this one:
- WebLayer will be Spring MVC
- Service Layer a bunch of Spring object instantiated by spring (usually @Transactional)
- Data Layer will be hibernate POJO and Data Access Objects(@Repository)
Where to Start?
Well there are a lot of documentation i must say that spring guy have done an amazing job on this matter.
About using freemarker is easy to plug it with spring here is an article to do it but also is on the official documentation Integrating View Technologies.
Tools you can use
Since you are basing everything on Spring, Spring Suite Tool can do the trick ;)
This is a good place to start: http://static.springsource.org/docs/Spring-MVC-step-by-step/
It'll get you up and running with a Spring MVC project which contains all the components in your question
You might want to take a look at AppFuse by Matt Raible: http://appfuse.org
Starting off with the "light" version might be a good idea, but it sure has helped me to get started and learn new frameworks in the past. So generating a (readily deployable) project with Spring, Hibernate and a Web-Framework and Database of your choice will be quite easy.
If you want to stick more closely to Spring, try http://www.springsource.org/roo
精彩评论