Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
602 views
in Technique[技术] by (71.8m points)

3个dao的数据根据请求参数选择一个映射到一个url上,怎么写比较好?

3个dao的数据要映射到一个url上,用请求参数指出使用哪一个dao。这个怎么选择?用@RequestParam在控制器里面做选择,还是在service里面做选择?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

在service里面判断参数 看下用什么dao


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...