Yjfox.github.io

Jun Yin's Personal Blog

Follow me onGitHub

J2EE+RESTful+JSON connect MySQL

RESTful Web Services API using Java and MySQL - for ColFusion Project


Requirements:

Code cannot be provided now as it is not open sources.
but some tricks are allowed to share:

Tricks:

  • Right click the project, and choose Run as -> Run on server
  • After the url (localhost:8080) please add the variables which indicated by the code and web.xml(such as RESTfulProject, Rest, Webservice, Getfeeds)
  • Make sure your mysql server port is as same as what java code write(3306?), otherwise, modify one of them to make sure they are same.

Result example, get data info from mysql
right?

end. 2013-10-25

blog comments powered by Disqus