I\'ve been development a gwt application with should have a rest service to access the database, both its own database and the other remote ones. I use Spring to better work
You have not created bean for customerDAO
in your applicationContext.xml file. If you want to use this as bean in your CustomerServiceImpl.java
, create its bean in applicationContext.xml.
Put below code in your applicationContext.xml :
<bean class="name.of.package.CustomerDAO" id="customerDAO">
</bean>
And Add @Component
annotation on your CustomerServiceImpl.java
class.
This should work for you. For reference you can use this tutorial. Here you can better understand integration of spring and JAX-RS.