|
@@ -1,5 +1,6 @@
|
|
|
package org.hsweb.web.service.impl;
|
|
|
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
@@ -11,6 +12,7 @@ import javax.validation.ValidatorFactory;
|
|
|
* Created by zhouhao on 16-4-25.
|
|
|
*/
|
|
|
@Configuration
|
|
|
+@ConditionalOnMissingBean(Validator.class)
|
|
|
public class HibernateValidatorAutoConfiguration {
|
|
|
|
|
|
@Bean
|