ssh
部署出错
可能是artifacts里面除了maven之外的jar包没导入
hibernate配置文件找不到xml文件
√ <property name="mappingLocations" value="classpath:com/bagevent/pojo/*.hbm.xml"/> × <!-- <property name="mappingLocations">--> <!-- <list>--> <!-- <value>com/bagevent/pojo/Userloginlog.hmb.xml</value>--> <!-- </list>--> <!-- </property>--> x <property name="mappingLocations"> <list> <value>classpath:com/bagevent/pojo/*.hmb.xml</value> </list> </property> 原来这都不是原因,原因是Userloginlog.hmb.xml 我没写,只是个空文件夹,哈哈哈哈哈哈哈哈,有毒,
数据库错误
User tmp= (User) userDao.find("from user u where u.user_name ='?'",user.getUser_name()); 这里 ?要用''引起来, 报错还因为hmb.xml没有把所有字段加进去, 报错 因为Hql和sql不一样,hql 表名要大写,和类名一样,其实并不是表名 find(arg 1);返回list User tmp= (User) userDao.find("from User u where u.user_name = ?","hiber").get(0);返回一个
相关推荐
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18