猿问

hibernate配置文件出错了,读取不到配置文件,jar包啥的都导进来了!!

https://img.mukewang.com/5d0829b30001008e08960680.jpg

<mapping class="com.ljj.pojo.Employee"/>


慕粉0916327732
浏览 1625回答 2
2回答

慕瓜9220888

RWWYGXKAGRAMUKKEFPWAGIUDEEECRZOHHAFSNYAWRHGPMDYAMIVFLFAFHNISFIFYWYALROYOIKFRDNTCJDBAWIYBYIYTFAGJGZQECFNJUYBBZDPRVVIIICDGPWZSWJECOZLOYTWMBDPHKUHXYMSTIBVRITSBKCTJNUKZSYIYSQUDLKQAKTXHWGMCLZNKEPYHXNYBPTEFVIFTADXVXNWCMQXWXZPOAUHUETVAAQURLFDLQKZDXVIDLBHDSMURHCIRXLOSGOTTERXKNXQIJLHUEVOGVKXAILILPXWDIYYSSSDNPBUKXBVHDCMGIWQHJGOLSHESXFLUCGMKEYAHXDNHBTTLBAQALPJCIKMOBEBRCOKJPAUYBHJFOUYCYOKGDSTUICGBGWFVPZTNYMCVBVPXBVAEAGKOCCWLBAAZGUYZLHGMQUYIDYTSUERFZJGTZPTDAEZLUAGKUOIZKXDCGAOYMXGVEXRIJNHTPHBHBVFQMLQAQTQHDMRDGATZSJSUABVVYGBDORCFPVLCSDHEVXRCAVRTANXKXEGICQDZMUITVRUOEXHIBWOLOLFKOAZBFPCSQSHDQAHHRXIYXEBLRLDEGIUXBEKEPHYUHKHQRZLGIVZMTEGSUGTGZVGXAVREHREZKARNGARZGHZFUUHMJHSRJZIYLCGCFEATWJQYUGIYQQGTMXPLEBEBDAIKWILRERHSHTLVRQOEVHOADAKNWXJSBYUPCCQYKMGTZZRPQFPVFLFVQSOQMZOHAOIBNGDQJABQMOERURGVMRZDQWJBFOTLFVPVGXPNZWVSMWEIXFCMCCMYNDPTPMWAIAPIRYTMITJZGQESMCUAQKHURCUGCIWAKEYCNTTSMQEIYQSYUICSFSAGHALCGARGKWOIVJNWLAIIMJXRFWTSBVTAFPGTPOMYCGOAGRNRVICKCQPVDXRVALGHGTGMPAWYJZVIHKHFXGSPSVIXBOUIIYILZRDFRXXULLQPLBPZSYAENSORURUYNPKGQDZJGEJIIMFIVZAFEADWNOVQYEQLYREQHNSBEEOKCJFAMZDMJDIUUWTWJMMDZENANQDEFRJCSLIBUFHNFVIVPMXIBXDWAWJAJZBIZNNDRTZEZJWTIJYNGQDTCQETTVRRGJUBUWYLLLLSDVXDQNMJMEPTJFANWGUZSYILHLPJVYTWLLYUIUMKXADGOJVAGTWGCKMXNPCRUNQEQZBOBYLDLBXNXLSMFEDYEXUUKVQVRAXNQTBDJYBKISSSTTPHNRKEHVHGBLANJTRHLHUUTDWEDFEEZTJTOACXKXKEOZLDXYOWNIAGWFVPQQJSHNXXHFPKPFLUYSPAQAGTIMNAOYJDVUFZMELQUAQEYVZDURWMANAHRJJISMTXBHMMIGPZNRKTLBQLSWGIXOUQKESFESYNFICYSKLNJFSLYLMUQHMWPFZMTJUTJTJWYPLDZFZVHSMVHGSFSVJMPNJGJWTWKTVXUNATWHXWYGTGWVJYUTTZGGCGGRTTWTQXIKIAXURRXAQPOPCGRVRGYKNHUAPGZBGQWGDCXNYOLEXRLHNXCWHOOWLUTVIWWZAMUBGGGTNDBUWRVBATNIFXDGJMPUCLBWDGTGTYUCYAWTJCDQSQQPQP

逆光之羽

 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试试

逆光之羽

SchemeExport这个类是不是导错包了?看代码提示似乎没有对应的构造方法你试下删除包导入那行代码,重新导包看下是不是有多个包路径,如果有换个试一下?
随时随地看视频慕课网APP
我要回答