다크호스 프로그래머: hibernate 테스트 이상 해결: Hibernate Validator bean - validator - 3.0 - JBoss - 4.0.2
안 드 로 이 드 교육 、
당신 과 교류 하 기 를 기대 합 니 다!
hibenate. cfg. xml 설정 파일 은 다음 과 같 습 니 다.
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- -->
<property name="connection.url">jdbc:mysql://localhost:3306/db_database14</property>
<!-- -->
<property name="connection.username">root</property>
<!-- -->
<property name="connection.password">root</property>
<!-- -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!-- SQL -->
<property name="show_sql">true</property>
<!-- -->
<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>
<mapping resource="org/hibernate/tutorial/hbm/Event.hbm.xml"/>
</session-factory>
</hibernate-configuration>
테스트 시 가방 아래 이상:
인용 하 다.
2012-5-23 23:01:53 org.hibernate.annotations.common.Version
정보: Hibernate Commons Annotations 3.2.0. Final
2012-5-23 23:01:53 org.hibernate.cfg.Environment
정보: Hibernate 3.6.10. Final
2012-5-23 23:01:53 org.hibernate.cfg.Environment
정보: hibernate. properties not found
2012-5-23 23:01:53 org.hibernate.cfg.Environment buildBytecodeProvider
정보: Bytecode provider name: javassist
2012-5-23 23:01:53 org.hibernate.cfg.Environment
정보: JDK 1.4 java. sql. Timestamp handling 사용
2012-5-23 23:01:53 org.hibernate.cfg.Configuration configure
정보: 리 소스 구성: / hibernate. cfg. xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration getConfigurationInputStream
정보: Configuration resource: / hibernate. cfg. xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration addResource
정보: 리 소스 에서 매 핑 읽 기: org / hibernate / tutorial / hbm / Event. hbm. xml
2012-5-23 23:01:53 org.hibernate.cfg.Configuration doConfigure
정보: 구 성 된 SessionFactory: null
2012-5-23 23:01:53 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
정보: Mapping class: org. hibenate. tutorial. hbm. Event - > EVENTS
2012-5-23 23:01:53 org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
정보: Hibernate Validator 를 찾 을 수 없 음: ignoring
2012-5-23 23:01:53 org.hibernate.validator.util.Version
정보: Hibernate Validator bean - validator - 3.0 - JBoss - 4.0.2
솔 루 션, 설정 파일 에 다음 문장 을 추가 하면 됩 니 다.
<property name="javax.persistence.validation.mode">none</property>
-------
자바 교육 、
당신 과 교류 하 기 를 기대 합 니 다!
자세히 보기:
안 드 로 이 드 교육 -------
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.