猿问
hibernate配置文件出错了,读取不到配置文件,jar包啥的都导进来了!!
<mapping class="com.ljj.pojo.Employee"/>
慕粉0916327732
浏览 1625
回答 2
2回答
慕瓜9220888
RWWYGXKAGRAMUKKEFPWAGIUDEEECRZOHHAFSNYAWRHGPMDYAMIVFLFAFHNISFIFYWYALROYOIKFRDNTCJDBAWIYBYIYTFAGJGZQECFNJUYBBZDPRVVIIICDGPWZSWJECOZLOYTWMBDPHKUHXYMSTIBVRITSBKCTJNUKZSYIYSQUDLKQAKTXHWGMCLZNKEPYHXNYBPTEFVIFTADXVXNWCMQXWXZPOAUHUETVAAQURLFDLQKZDXVIDLBHDSMURHCIRXLOSGOTTERXKNXQIJLHUEVOGVKXAILILPXWDIYYSSSDNPBUKXBVHDCMGIWQHJGOLSHESXFLUCGMKEYAHXDNHBTTLBAQALPJCIKMOBEBRCOKJPAUYBHJFOUYCYOKGDSTUICGBGWFVPZTNYMCVBVPXBVAEAGKOCCWLBAAZGUYZLHGMQUYIDYTSUERFZJGTZPTDAEZLUAGKUOIZKXDCGAOYMXGVEXRIJNHTPHBHBVFQMLQAQTQHDMRDGATZSJSUABVVYGBDORCFPVLCSDHEVXRCAVRTANXKXEGICQDZMUITVRUOEXHIBWOLOLFKOAZBFPCSQSHDQAHHRXIYXEBLRLDEGIUXBEKEPHYUHKHQRZLGIVZMTEGSUGTGZVGXAVREHREZKARNGARZGHZFUUHMJHSRJZIYLCGCFEATWJQYUGIYQQGTMXPLEBEBDAIKWILRERHSHTLVRQOEVHOADAKNWXJSBYUPCCQYKMGTZZRPQFPVFLFVQSOQMZOHAOIBNGDQJABQMOERURGVMRZDQWJBFOTLFVPVGXPNZWVSMWEIXFCMCCMYNDPTPMWAIAPIRYTMITJZGQESMCUAQKHURCUGCIWAKEYCNTTSMQEIYQSYUICSFSAGHALCGARGKWOIVJNWLAIIMJXRFWTSBVTAFPGTPOMYCGOAGRNRVICKCQPVDXRVALGHGTGMPAWYJZVIHKHFXGSPSVIXBOUIIYILZRDFRXXULLQPLBPZSYAENSORURUYNPKGQDZJGEJIIMFIVZAFEADWNOVQYEQLYREQHNSBEEOKCJFAMZDMJDIUUWTWJMMDZENANQDEFRJCSLIBUFHNFVIVPMXIBXDWAWJAJZBIZNNDRTZEZJWTIJYNGQDTCQETTVRRGJUBUWYLLLLSDVXDQNMJMEPTJFANWGUZSYILHLPJVYTWLLYUIUMKXADGOJVAGTWGCKMXNPCRUNQEQZBOBYLDLBXNXLSMFEDYEXUUKVQVRAXNQTBDJYBKISSSTTPHNRKEHVHGBLANJTRHLHUUTDWEDFEEZTJTOACXKXKEOZLDXYOWNIAGWFVPQQJSHNXXHFPKPFLUYSPAQAGTIMNAOYJDVUFZMELQUAQEYVZDURWMANAHRJJISMTXBHMMIGPZNRKTLBQLSWGIXOUQKESFESYNFICYSKLNJFSLYLMUQHMWPFZMTJUTJTJWYPLDZFZVHSMVHGSFSVJMPNJGJWTWKTVXUNATWHXWYGTGWVJYUTTZGGCGGRTTWTQXIKIAXURRXAQPOPCGRVRGYKNHUAPGZBGQWGDCXNYOLEXRLHNXCWHOOWLUTVIWWZAMUBGGGTNDBUWRVBATNIFXDGJMPUCLBWDGTGTYUCYAWTJCDQSQQPQP
0
0
0
逆光之羽
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder() .configure() .build(); MetadataImplementor metadata = (MetadataImplementor) new MetadataSources(serviceRegistry) .buildMetadata(); new SchemaExport().create( EnumSet.of(TargetType.DATABASE), metadata );没有环境没测试 网上说是hibernate5.1.0之后已经变更了 新的创建代码贴的是这个你可以自己试下 或者自己换个低版本的hibernate试试
0
0
0
逆光之羽
SchemeExport这个类是不是导错包了?看代码提示似乎没有对应的构造方法你试下删除包导入那行代码,重新导包看下是不是有多个包路径,如果有换个试一下?
0
0
1
随时随地看视频
慕课网APP
相关分类
Java
架构
构架与架构的区别是什么?
1 回答
什么是架构 ?
2 回答
我要回答