need to restructure the filesctructure in springboot project
it is now a package but want it to be folders just like in my old project so i can place folders there
37 Replies
ā
This post has been reserved for your question.
Hey @Timo! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.

basically want the new project (left) to have the same filestructure as the right so i can create folders for dao models controllers etc
a package with the name
a.b.c
is a folder a
with a folder b
with a folder c
yeah but shouldn t it be like the old project otherwise i have a ton of packages
So on the right, you have a package
com.example.todoappdeel3
but IntelliJ is just not loading it properlyi say do
whats the name for that package setup
functionality based setup
just create packages as you like?
so u got for example
book
and in the book package u keep bookcontroller bookservice
etc
but there are folders in there like dto etc and not packages like when i try on the left
can also do that with a folder?
these folders are just packages - IntelliJ just doesn't display it properly
and you can create nested packages
but is my intellij on weed then today?
cuz seems to be doing everything wrong lol
I think it's just the project not loaded correctly
but i rebuild it?
yea

because you seem to have the
did that alr
you are actually opening a folder
within the folder
and then opening the actual project
The project on the left seems perfectly fine
if im understanding it right
yea but on the right
or wait
whats your goal again
but what is the advantage of a package over a folder cuz then i have the com example backend and dto package controller package etc instead of just folders
so thats the way of intellij shortening it
packages are just folders
if you put something in the com folder it would be shown as separate
open it in the file explorer of your OS and you'll see
vice versa for any other folder
but like 1/1 or is there a differnece?
packages are folders that Java understands
only java?
or any other programming langueges too?
packages are specific to the JVM
other languages may have similar concepts or even other things with the same name though
okay lol weird but atleast i know for now
in my old project intellij all showed them as folders XD
As I said, I think IntelliJ didn't properly load it
i think cuz the project was within an open folder
like it says
luxury products backend twice
š±
yeah it is on weed lol
anyway thanks for the help can i just use !close
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Post Closed
This post has been closed by <@591288621345275915>.