what is the difference between these two folders? Why my beans have to go in resources, so my web app to work?
src/main/java Application/Library sources
src/main/resources Application/Library resources
The src/main/java
contains your java source codes. that is, your java packages, *.java files.
The src/main/resources
contains "resources" file of your project. e.g. properties file, configuration files (xml, ini, conf....) they are in classpath of your project.
Usually the compiled sources (*.class files) and those resources would be in target/classes
.
Your web app sources (e.g. Jsp/jspx, js, html...) should go to src/main/webapp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With