为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

慕粉0916327732 2019-06-18 08:02:20
<mapping class="com.ljj.pojo.Employee"/>
查看完整描述

2 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

RWWYGXKAG

RAMUKKEFP

WAGIUDEEE

CRZOHHAFS

NYAWRHGPM

DYAMIVFLF

AFHNISFIF

YWYALROYO

IKFRDNTCJ

DBAWIYBYI

YTFAGJGZQ

ECFNJUYBB

ZDPRVVIII

CDGPWZSWJ

ECOZLOYTW

MBDPHKUHX

YMSTIBVRI

TSBKCTJNU

KZSYIYSQU

DLKQAKTXH

WGMCLZNKE

PYHXNYBPT

EFVIFTADX

VXNWCMQXW

XZPOAUHUE

TVAAQURLF

DLQKZDXVI

DLBHDSMUR

HCIRXLOSG

OTTERXKNX

QIJLHUEVO

GVKXAILIL

PXWDIYYSS

SDNPBUKXB

VHDCMGIWQ

HJGOLSHES

XFLUCGMKE

YAHXDNHBT

TLBAQALPJ

CIKMOBEBR

COKJPAUYB

HJFOUYCYO

KGDSTUICG

BGWFVPZTN

YMCVBVPXB

VAEAGKOCC

WLBAAZGUY

ZLHGMQUYI

DYTSUERFZ

JGTZPTDAE

ZLUAGKUOI

ZKXDCGAOY

MXGVEXRIJ

NHTPHBHBV

FQMLQAQTQ

HDMRDGATZ

SJSUABVVY

GBDORCFPV

LCSDHEVXR

CAVRTANXK

XEGICQDZM

UITVRUOEX

HIBWOLOLF

KOAZBFPCS

QSHDQAHHR

XIYXEBLRL

DEGIUXBEK

EPHYUHKHQ

RZLGIVZMT

EGSUGTGZV

GXAVREHRE

ZKARNGARZ

GHZFUUHMJ

HSRJZIYLC

GCFEATWJQ

YUGIYQQGT

MXPLEBEBD

AIKWILRER

HSHTLVRQO

EVHOADAKN

WXJSBYUPC

CQYKMGTZZ

RPQFPVFLF

VQSOQMZOH

AOIBNGDQJ

ABQMOERUR

GVMRZDQWJ

BFOTLFVPV

GXPNZWVSM

WEIXFCMCC

MYNDPTPMW

AIAPIRYTM

ITJZGQESM

CUAQKHURC

UGCIWAKEY

CNTTSMQEI

YQSYUICSF

SAGHALCGA

RGKWOIVJN

WLAIIMJXR

FWTSBVTAF

PGTPOMYCG

OAGRNRVIC

KCQPVDXRV

ALGHGTGMP

AWYJZVIHK

HFXGSPSVI

XBOUIIYIL

ZRDFRXXUL

LQPLBPZSY

AENSORURU

YNPKGQDZJ

GEJIIMFIV

ZAFEADWNO

VQYEQLYRE

QHNSBEEOK

CJFAMZDMJ

DIUUWTWJM

MDZENANQD

EFRJCSLIB

UFHNFVIVP

MXIBXDWAW

JAJZBIZNN

DRTZEZJWT

IJYNGQDTC

QETTVRRGJ

UBUWYLLLL

SDVXDQNMJ

MEPTJFANW

GUZSYILHL

PJVYTWLLY

UIUMKXADG

OJVAGTWGC

KMXNPCRUN

QEQZBOBYL

DLBXNXLSM

FEDYEXUUK

VQVRAXNQT

BDJYBKISS

STTPHNRKE

HVHGBLANJ

TRHLHUUTD

WEDFEEZTJ

TOACXKXKE

OZLDXYOWN

IAGWFVPQQ

JSHNXXHFP

KPFLUYSPA

QAGTIMNAO

YJDVUFZME

LQUAQEYVZ

DURWMANAH

RJJISMTXB

HMMIGPZNR

KTLBQLSWG

IXOUQKESF

ESYNFICYS

KLNJFSLYL

MUQHMWPFZ

MTJUTJTJW

YPLDZFZVH

SMVHGSFSV

JMPNJGJWT

WKTVXUNAT

WHXWYGTGW

VJYUTTZGG

CGGRTTWTQ

XIKIAXURR

XAQPOPCGR

VRGYKNHUA

PGZBGQWGD

CXNYOLEXR

LHNXCWHOO

WLUTVIWWZ

AMUBGGGTN

DBUWRVBAT

NIFXDGJMP

UCLBWDGTG

TYUCYAWTJ

CDQSQQPQP

查看完整回答
反对 回复 2021-10-20
?
逆光之羽

TA贡献55条经验 获得超13个赞

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

查看完整回答
反对 回复 2019-06-18
?
逆光之羽

TA贡献55条经验 获得超13个赞

SchemeExport这个类是不是导错包了?看代码提示似乎没有对应的构造方法

你试下删除包导入那行代码,重新导包看下是不是有多个包路径,如果有换个试一下?

查看完整回答
反对 回复 2019-06-18
  • 2 回答
  • 0 关注
  • 1624 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信