1. Correct use of spring
1. Configuration of dwr.xml
customerManager It is the Id
2 registered by spring, and the page calls
Second, explain
If the regular methods used in the business logic class customerManagerImpl.java will not be called by the static page, such as
public String test(){
return "hello" ;
}
The following code cannot be executed:
JCustomerManager.test(function(data){
alert(data);}
)
JCustomerManager.test(function(data){
alert(data);}
)
Need to use new registration method
Third, you need to use new and spring correctly, and pay attention to the difference between the two.