我正在使用 dwr 和 spring,但收到此错误:
java.lang.IllegalArgumentException: Javascript name * is used by 2 classes
I found nothing helpful on Google, do you know why I'm getting this error?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<dwr:configuration />
<dwr:controller id="dwrController" debug="true" />
<bean id="ping" class="com.mycompany.Ping">
<dwr:remote javascript="rpcPing">
<dwr:include method="ping" />
</dwr:remote>
</bean>
</beans>
最佳答案
找到了。 因为DWR的jar版本与DWR的schema版本不匹配
关于java - 为什么 Java 给我一个 IllegalArgumentException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/673716/