随笔分类 - 实战
摘要:windows proferences java--compiler进入项目--properties java Compiler进入项目--properties Myeclipse project Facets设置java文件的版本为 1.7
阅读全文
摘要:前台 后台 HSSFRow row = sheet.createRow(0);: 创建第0行 HSSFCell c2 = row.createCell(2); 创建0行2列 HSSFCell c3 = row.createCell(4); 说明2列占了2列 sheet.addMergedRegion
阅读全文
摘要:严重: One or more listeners failed to start. Full details will be found in the appropriate container log fileWEB-INF/classes目录下新建一个文件叫logging.properties
阅读全文
摘要:1. 在数据库更新链接 /portal/server/getServerList 2. 写实体类 Server.java 3. 写Server.hbm.xml 4. hibernate.cfg.xml添加上面的xml 5. 写service接口和实现类 (别忘了实现类加@Service) 6. 重启
阅读全文
摘要:1. 前端按钮 2. js函数 3. controller端实现
阅读全文
摘要:前台图片调用js函数 js函数, 其中有一项重要处理, 在open窗口关闭的同时, 当前窗口刷新 controller端 /portal/trip/changeUrl tripURL.jsp, 其中有个处理, 提交保存后, 关闭当前页面 controller端 /portal/trip/update
阅读全文
摘要:1. 数据库里更新链接: Business Trip url:/trip/getBizList 2. controller雏形 3. 建实体类: 4. 新建数据库表hbm.xml 5. 在hibernate.cfg.xml里新增 <mapping resource ="com/web/control
阅读全文
摘要:1. 新建web project 2. 引入jar, 3. 创建包com.tgb.web.controller, 下面创建包(dao,entity,service, config,spring,hibernate) config-> spring-core.xml,spring-servlet.xm
阅读全文
摘要:1. 新建web project 2. 增加jar 3. 改写web.xml 4. 新建config包下的spring-servlet.xml 5. 新建UserController.java, 在com.tgb.web.controller包下 6. 创建json.jsp文件 7.IE端验证
阅读全文
摘要:一对一: 多对一: 一对多, 与上面对应: 多对多
阅读全文
摘要:步骤: 一. 写实体类, 配置文件 Forum.hbm.xml, 在hibernate.cfg.xml里添加实体, 运行sessionFactory的test方法, 得到表格 二. 写action, 添加基本方法, 写jsp页面,配置struts.xml 三. 创建service接口和实现类,Bas
阅读全文
摘要:1. 充分了解需求, 包括所有的细节, 需要知道要做一个什么样的功能 2. 设计实体/表 正向工程: 设计实体, 映射文件-->建表 反向工程: 设计表--> 映射文件, 实体 3. 分析功能 分析道每个请求的粒度 得到的结果是我们需要处理多少个请求, 其中每个情况对应一个action方法 4. 实
阅读全文
摘要:1. Privilege.java 2. Privilege.hbm.xml 3. 更新role.hbm.xml 4. 更新hibernate.cfg.xml
阅读全文
摘要:1. 权限: 控制功能的使用, 功能对应这URL 2. web权限: 每个功能都有相应的URL地址, 对功能的控制就是对URL地址的访问控制 3. 权限方案: 用户* *角色* *权限 User类不用变化 Role类添加一个Privilege的set集合 Privilege类设计: Long:id,
阅读全文
摘要:1. 所有dao和daoimpl模块都不用, 加上 @Deprecated 2. 建立DaoSupport类和DaoSupportImpl类 DaoSupport.java DaoSupportImpl.java 3. 抽取BaseAction, 这样每个action都可以专注写自己的方法 整合完毕
阅读全文
浙公网安备 33010602011771号