I am new to IntelliJ and I am using it to create a Spring Boot application. I have the following project structure:
I need to create a "css" directory underneath the "static" directory underneath the "resources" directory, so I can put in there the CSS files I want to use in my Thymeleaf web page templates.
I then tried to add a "css" sub-directory by right-clicking on the "static" directory and using the New -> Directory dialog. Instead of ending up with a sub-directory called "css" under "static", it renamed "static" to "static.css", as shown below.
Given the little dot on the folder icons, it almost feels like IntelliJ is treating those folders as Java packages instead of actual file folders. What is the proper way with IntelliJ to create a sub-directory under the "static" directory?
You're creating in a right way, but Intellij is showing in its way. Just click the gear
icon next to minimize
icon. And uncheck Compact Empty Middle Packages
. It should show in a tree format.
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