What is the recommended project structure for spring boot rest projects?

前端 未结 9 1697
迷失自我
迷失自我 2020-12-07 09:29

I\'m a beginner with spring boot. I\'m involved in the beginning of a project where we would build rest services using spring boot. Could you please advise the recommended d

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 09:57

    There is a somehow recommended directory structure mentioned at https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-structuring-your-code.html

    You can create a api folder and put your controllers there.

    If you have some configuration beans, put them in a separate package too.

提交回复
热议问题