Spring boot integrates mybatis and jpa directory structure how to put it more reasonable and elegant?

there are all kinds of

on the Internet.

for example, some people put both JpaRepository and entity in domain

there are JpaRepository and mapper in the dao directory
and repository and mapper in separate directories

which is elegant and reasonable

Jul.26,2021

look at the size of your project. If it's not big, just go nearby, and open it if there are many files.


to be elegant is of course separate.

Menu