传智播客学习笔记5.22

传智播客学习笔记5.22
汤阳光老师

ItcastBBS

完成内容:
 1、版面管理与显示
 2、用户的注册与登陆
 3、文章的发表与回复,添加附件,发起投票,下载附件,参与投票
 4、站内文章的搜索


环境搭建

步骤:
设计实体--DAO


更改显示行数:
window-preferences--java-formatter--linwrapping

alt+向左箭头,回到上一次访问的文件

按两次ctrl+shift+l 快捷键配置窗口

word completion:匹配单词 alt+.

类上 ctrl+t 继承结构


F2显示类的完整列名
shift+ctrl+t 查找


重定向会改变地址
redirect=true

apache commons.lang
StringUtils

 

不要拼接hql语句,应使用参数

 

--------------------------Class: class cn.itcast.bbs.dao.impl.CategoryDaoImpl
-------------------type:cn.itcast.bbs.dao.base.GenericDaoImpl<cn.itcast.bbs.domain.Category>
---------------------------pt:cn.itcast.bbs.dao.base.GenericDaoImpl<cn.itcast.bbs.domain.Category>

 

user.do?method=addUI


jquery使用
根据name/id/class获取元素

ctrl +shift +t查找文件
ctrl+shift +r 查找资源


getFileData
getFileData
byte[] getFileData()
                   throws java.io.FileNotFoundException,
                          java.io.IOExceptionReturns the data for the entire file as byte array. Care is needed when using this method, since a large upload could easily exhaust available memory. The preferred method for accessing the file data is getInputStream.


Returns:
The file data as a byte array.
Throws:
java.io.FileNotFoundException - if the uploaded file is not found.
java.io.IOException - if an error occurred while reading the file.

重定向,转发

今天终于开始做一个比较实用、正式的大项目了。也宣告着基本知识的学习结束。接下来就是依靠代码量的增加来提升自己的经验了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值