我新手,想学习一下,下的传智播客BBS的源码,可就是总报错
这个是部署说明
1,数据库连接:
1,创建相应的数据库
2,修改 hibernate.cfg.xml 中的数据库连接信息。
3,如果使用的不是MySQL数据,要添加相应的JDBC驱动的jar包
4,关闭自动建表与不显示sql语句
2,配置log4j.properties文件。并移走已存在的日志(如果有)
3,初始化系统:执行 /del/index.jsp。按列出的序列点点击超链接,作用是向数据库中插入相应的初始化数据
注意:运行完后,最好删除此目录,因为只需要执行一次就可以了。
4,登录管理员:用户名admin,密码itcast,进入后台,初始化数据。
1,分类与版面
2,普通会员的权限设置
那个关闭自动建表与不显示SQL是什么意思,在哪里弄?
下面这是错误信息
22:30:54,708 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Attachment]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,306 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Article]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,364 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Role]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,379 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.BlogLink]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,393 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,423 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Forum]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,445 [main] WARN CacheFactory : read-only cache configured for mutable class: cn.itcast.bbs.domain.SystemPrivilege ==> org.hibernate.cache.CacheFactory.createCache(CacheFactory.java:43)
22:30:55,452 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.SystemPrivilege]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,542 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Category]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,555 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User.roles]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)