J2EE+RESTful+JSON connect MySQL
RESTful Web Services API using Java and MySQL - for ColFusion Project
Requirements:
- eclipse (with web tools plugin, available at http://download.eclipse.org/releases/kepler), may need other plugins installed firstly
- Mysql, MAMP or WAMP is OK
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
end. 2013-10-25