13
spring boot写接口,dto和vo一般怎么用?
source link: https://www.oschina.net/question/2771565_2320740
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
spring boot写接口,dto和vo一般怎么用?
漠孤烟
昨天 10:06
Map一时爽,重构火zang场。
返回Map在我们团队是绝对禁止的。
entity + dto就可以了,dto用于接收前端的值,传值给service,返回前端,一个entity可能有多个不同的dto。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK