0
什麼是更好的命名包的方法?什麼是更好的方式來命名包
com.company.project.funtionality1.dao
com.company.project.funtionality1.vo
com.company.project.funtionality1.dto
com.company.project.funtionality1.controller
com.company.project.funtionality1.view
com.company.project.funtionality2.dao
com.company.project.funtionality2.vo
com.company.project.funtionality2.dto
com.company.project.funtionality2.controller
com.company.project.funtionality2.view
(或)
com.company.project.dao.functionality1
com.company.project.dao.functionality1
com.company.project.vo.funtionality1
com.company.project.vo.funtionality2
com.company.project.dto.funtionality1
com.company.project.dto.funtionality2
com.company.project.controller.funtionality1
com.company.project.controller.funtionality2
com.company.project.view.funtionality1
com.company.project.view.funtionality2
沒有「更好」的方式 - 它取決於_you和team_想要構建代碼 - 儘管可能很多人傾向於首先基於特徵/功能來放置軟件包。然而,一如其他的觀點和情況,首先使用技術結構可能更有意義,例如,如果將應用程序分成api和實現,並且不在項目/工件級別執行該操作。 – Thomas