java - spring boot可以作为app后端接口吗
巴扎黑
巴扎黑 2017-04-18 10:48:01
0
5
714

spring boot可以作为app后端接口吗

巴扎黑
巴扎黑

reply all(5)
巴扎黑

Yes, all you need to do is basically SpringMVC configuration, @ResponseBody annotation, and specify the produce parameter to @RequestMapping as application/json. The return value of such a method will be serialized into JSON.

巴扎黑

Yes, you can use restful in combination with springmvc, or you can use Jersey, resteasy, etc. I wrote one some time ago, you can refer to it. https://github.com/jcalaz/xma...

黄舟

To add, if the interface purely returns json type data, just use restcontrol directly

Ty80

Yes, the APP backend usually returns restful-style Json data, http://www.roncoo.com/article... This is the simplest RESTfull API project built using spring boot. You can refer to it.

巴扎黑

It must be possible~ All are restful interfaces. At most, the interface developed based on spring-boot can be connected to an API gateway.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!