为什么我论坛发帖设置回复可见总是没人回

为什么发帖都没人回复_百度知道
为什么发帖都没人回复
我有更好的答案
贴吧好友比较少?平时不怎么帮别人回帖?贴吧最重要混脸熟!
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。为什么小弟我发帖总没人回复啊 - J2EE当前位置:& &&&为什么小弟我发帖总没人回复啊为什么小弟我发帖总没人回复啊&&网友分享于:&&浏览:10次为什么我发帖总没人回复啊!!!运行程序的结果是: &main& : could not insert: [lee.News];Caused by: : Table 'hibernates.news_table' doesn't exist奇怪的是数据没有插入成功,反而自动把表给删除了。。。。纠结了好长时间,请懂的朋友支援,谢谢!!mysql: &create table news_table ( &news_id int primary key auto_increment, &news_title varchar(20) not null, &content varchar(50) not null );News.java : & public class News { & private I & private S & private S &
& public News() {} & public News(Integer id, String title, String content) { & this.setId(id); & this.setTitle(title); & this.setContent(content); & } & public Integer getId() { & & } & public void setId(Integer id) { & this.id = & } & public String getTitle() { & & } & public void setTitle(String title) { & this.title = & } & public String getContent() { & & } & public void setContent(String content) { & this.content = & }}Test.java : & import org.hibernate.Simport org.hibernate.SessionFimport org.hibernate.Timport org.hibernate.cfg.Cpublic class Test { & public static void main(String[] args) throws Exception & { & //实例化Configuration & Configuration conf = new Configuration().configure(); & //实例化SessionFactory & SessionFactory sf = conf.buildSessionFactory(); & //实例化Session & Session sess = sf.openSession(); & //开始事务 & Transaction tx = sess.beginTransaction(); & //创建消息实例 & News n = new News(); & //设置消息标题和消息内容 & n.setTitle(&疯狂Java联盟成立了&); & n.setContent(&疯狂Java联盟成立了,网址是www.crazyit.org&); & //保存消息 & sess.save(n); & //提交事务 & tx.commit(); & //关闭Session & sess.close(); & }}News.hbm.xml : & &?xml version=&1.0& encoding=&UTF-8&?&&!DOCTYPE hibernate-mapping PUBLIC & &-//Hibernate/Hibernate Mapping DTD 3.0//EN& & &http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&&&hibernate-mapping package=&lee&& & &!-- 每个class元素对应一个持久化对象 --& & &class name=&News& table=&news_table&& & &!-- id元素定义持久化类的标识属性 --& & &id name=&id& column=&news_id& unsaved-value=&null&& & &generator class=&identity&/& & &/id& & &!-- property元素定义常规属性 --& & &property name=&title& column=&news_title& type=&string&/& & &property name=&content& type=&string&/& & &/class&&/hibernate-mapping&hibernate.cfg.xml : & &?xml version='1.0' encoding='UTF-8'?&&!DOCTYPE hibernate-configuration PUBLIC & &-//Hibernate/Hibernate Configuration DTD 3.0//EN& & &http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&&&hibernate-configuration& & &session-factory& & &!-- 指定连接数据库所用的驱动 --& & &property name=&connection.driver_class&&com.mysql.jdbc.Driver&/property& & &!-- 指定连接数据库的url,hibernate是连接的数据库名 --& & &property name=&connection.url&&jdbc:mysql://localhost/hibernates&/property& 共&2&页:
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有为什么我发帖总是没人回【平顶山吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:575,371贴子:
为什么我发帖总是没人回收藏
本人的大粗腿镇楼
正版授权奇迹MU页游,奇迹重生!原汁原味还原奇迹,十年轮回!
男神总说我腿太粗说我肚子上肉太多要我减肥
在你眼里我到底算什么'
无正脸p图当然要沉
发个木耳才会火火火, 手指一抖,三分到手。手持酱油,低头猛走。遇贴就回,捞经验就走……
能向上撩撩吗…
专为满足各类行业和客户要求而设计,并已被证明可满足各个施工标准的要求。
妹子是要闹哪样?
——来自平顶山白色iPhone5555手持客户端,为水果机雄起。
看不清,没法评论。
小碎花, 小可爱,小清新!
我随手一打,就是标准的十五个字哦!
我是来看脸的
因为你不是大神,大神是要渡劫的!十五字
还好还好~
无聊来逛逛
原来你是妞.
登录百度帐号推荐应用为什么我发帖就是没人回_百度知道
为什么我发帖就是没人回
我有更好的答案
又不提问,没啥回的必要么
你想要怎么回
好了,我回你了
为您推荐:
其他类似问题
您可能关注的内容
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 论坛发帖设置回复可见 的文章

 

随机推荐