Home  >  Q&A  >  body text

Java - Select one of the three dao data to be mapped to a url according to the request parameters. How to write it better?

The data of 3 daos should be mapped to a url, and the request parameters are used to indicate which dao to use. How to choose this? Use @RequestParam to make selections in the controller or in the service?

迷茫迷茫2712 days ago706

reply all(1)I'll reply

  • 阿神

    阿神2017-05-17 10:11:03

    Judge the parameters in the service and see what dao to use

    reply
    0
  • Cancelreply