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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3824f-2c108.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3824f-2c108.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?