springboot在启动jar由于配置hibernate的映射文件上classpath导致的!BOOT-INF/classes/!路径出现!号问题解决方法

<property name="mappingLocations">
			<list>
			    <value>classpath:/com/supwisdom/framework/domain/value>
			    <value>classpath:/org/supwisdom/system/pojo/value>
			    <value>classpath:/org/supwisdom/quartz/domain/value>
			    <value>classpath:/org/supwisdom/service/tagging/domain/value>
			    <value>classpath:/org/supwisdom/service/appservice/domain/value> 
			    <value>classpath:/org/supwisdom/service/evaluate/domain/value>
			list>
		property>

改为下面形式:

<property name="mappingLocations">
			<list>
			    <value>classpath:/com/supwisdom/framework/domain/*.hbm.xmlvalue>
			    <value>classpath:/org/supwisdom/system/pojo/*.hbm.xmlvalue>
			    <value>classpath:/org/supwisdom/quartz/domain/*.hbm.xmlvalue>
			    <value>classpath:/org/supwisdom/service/tagging/domain/*.hbm.xmlvalue>
			    <value>classpath:/org/supwisdom/service/appservice/domain/*.hbm.xmlvalue> 
			    <value>classpath:/org/supwisdom/service/evaluate/domain/*.hbm.xmlvalue>
			list>
		property>

你可能感兴趣的:(springboot学习,springboot)