Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
357 views
in Technique[技术] by (71.8m points)

java - How to create a src/main/resources directory?

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

directory structure

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To add a resource folder in eclipse:

Click on Build Path

Click on Configure Build Path

(or Properties -> Java Build Path)

Click on Source Tab

enter image description here

Click on Add Folder

enter image description here

Click on Create new Folder

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...