`
fantlam
  • 浏览: 97132 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论
文章列表
记得之前被 session的问题困扰了很久,也不断遇到很多问题,自己也提出许多解决方案,认识在不断加深中.... 我把笔记发上来     执行更新update操作时候出现的问题,后台采用hibernateTemplate操作 Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition OpenSessionInViewFilte ...
错误信息收集: 做hibernate表一对一的时候 Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: attempted to assign id from null one-to-one property: person; nested exception is org.hibernate.id.IdentifierGenerationException: attempted to assign id from null one-to-one pro ...
最后的部分是管理员操作这一部分倒没遇到什么大的问题,一般的问题都可以解决。到是在最后加个登陆验证的过滤器的时候,登陆之后的ID值在有的页面总传不过去,真奇怪。用户管理|——列出所有用户|——修改用户积分|——删除用户问题管理|——删除问题|——推荐问题栏目管理|——添加|——删除|——修改|——列出管理员|——添加|——删除修改密码这一部分的代码也没什么特别,所以也不贴出来了无法删除中文用户?(暂且改为按ID删除)java.lang.IllegalArgumentException: Path adminquestion.do?status=list does not start with a ...
接下来开发个人中心   个人中心包括内容: 1、 修改个人信息 2、 列出我提出的问题 3、 列出我回答过的问题 4、 列出被采纳的问题 分页大概的流程 从后台DAO去数据   public List queryByItem(int itemid, int currentPage, int lineSize)       throws Exception {     // TODO Auto-generated method s
2008-07-20 22:25:27,531 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml] 2008-07-20 22:25:27,609 INFO [org.springframework.jdbc.support.SQLErrorCodesFact ory] - SQLErrorC ...
来看下面2张表 插入几条测试数据 insert into item value(1,'JAVASE','1'); insert into item value(2,'JAVAEE','2'); insert into subitem(subname,itemid,subcode) value('IO流','1','1'); insert into subitem(subname,itemid,subcode) value('多线程','1','2'); insert into subitem(subname,itemid,subcode) value('socket','1', ...
如果出现mysql乱码问题 修改my.ini两处红色的地方gb2312[client]port=3306[mysql]default-character-set=gb2312# SERVER SECTION# ----------------------------------------------------------------------## The following options will be read by the MySQL Server. Make sure that# you have installed the server correctly (see above) ...
以上是做好前台验证,接下来是做DAO接口,往数据库里插数据 UserDAO.java package dj.fantlam.myssh.dao; import dj.fantlam.myssh.vo.User; public interface UserDAO { //注册 public void register(User user)throws Exception; }     UserDAOImpl.java   package dj.fantlam.myssh.daoimpl; import org.springframewor ...
user表的结构如下加入struts 采用DispatchActionStruts-config.xml<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> <st ...
此项目采用spring+hibernate+struts 数据库是mysql     连接方式采用Connection pool 我截取了几个重要步骤的图 首先配置好DB Driver   数据库连接地址:jdbc:mysql://localhost:3306/myssh 然后依次加入spring hibernate struts的支持 注意一下数据源的的填写 采用 JNDI DataSource: java:comp/env/jdbc/myssh 右键项目属性 加入还没加进来的JAR包
Global site tag (gtag.js) - Google Analytics