Java中的Exception

时间:2024-08-02 08:34:20

Caused by: java.lang.IllegalArgumentException: The servlets named [XXX] and [YYY] are both mapped to the url-pattern [/services/*] which is not permitted

原因是X和Y的servlet路径一致,选择其中一个就可以了,另一个注释或删掉就好了!

异常:unable to get the default Bean Validation factory;
方案:hibeinate.cfg.xml里配置
<property name="javax.persistence.validation.mode">none</property>