1, in crm_management project to introduce WebService CXF jar package
2. Add the Customer table given area number
3, write webservice service interface
4, service interface, connect to the database completion
CRM systems have been introduced into Spring Data JPA
5, write DAO
6, release WebService service to configure web.xml
Reconfiguration applicationContext.xml
Error Analysis:
Caused by: java.lang.IllegalArgumentException: Can not set int field cn.itcast.crm.domain.Customer.sex to null value
Customer class project originally sex type int, Integer to update the table structure, null data added
crm_management introduced crm_domain from the local maven repository (modified type, did not re-install)
Error Analysis:
The reason: the entity class has no annotations added @XmlRootElement