developing a webservice using java and mysql

后端 未结 3 1309
暗喜
暗喜 2021-01-26 15:25

I am not familiar with websrvices and mysql ..i followed this http://www.vogella.com/articles/REST/article.html tutorial and developed a RESTful web service in Java with the JAX

3条回答
  •  花落未央
    2021-01-26 15:56

    I would start here : http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet.html

    You can create a java class/method that encapsulates the Business logic, for example a method like getData(DataFormat xml/html, whatData) which connects to the mysql database and retrieves records and then transforms it into required format, call this method within getXML() and getHTML()

提交回复
热议问题