What is the difference between WEB-INF and / src / main / resources folders?

What files "specifically" should be in WEB-INF in a Spring 3 application that uses sleep mode? I also use Maven.

Do I need to copy some files to / src / main / resources in WEB-INF before the application runs in production?

Thanks!

+4
source share
1 answer

In your case, WEB-INF should contain the Web Descriptor web.xml and Spring configuration file. Although the Hibernate configuration file hibernate.cfg.xml and other mapping files should be placed inside src/main/resources during development.

http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch01.html#tutorial-firstapp

This official Hibernate tutorial tells you some details about what to include in src/main/resources and WEB-INF , which can help you understand the structure.

http://viralpatel.net/blogs/spring3-mvc-hibernate-maven-tutorial-eclipse-example/

I also found this tutorial very similar to your case, and you may have a link to it.

DISCLAIMER: I do not have web tutorial resources.

+5
source

All Articles