All my classes were working fine. Then I wanted to create main/resources
to add logback.xml
in main/resources
in my project
I got help from "How to create main/java inside src"
But after creating the folders I am getting errors in all my classes, and the main folders were converted into packages
How can I add the folder main/resources in my src folder?
Or is there any way to add logback.xml
in any package in spring MVC?
Right click on maven project --->Click on Build Path ----->Click on New Source Folder. New source folder window will open, give the name to your folder example - src/test/source. click on Finish.
The /src folder is used to store the file with the primary purpose of reading (and/or editing) the code. The /src folder contains all the sources, i.e. the code which is required to be manipulated before it can be used.
To add a resource folder in eclipse:
Build Path
Configure Build Path
(or Properties
-> Java Build Path
)
Source Tab
Click on Add Folder
Create new Folder
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