传智播客学习笔记5.22

来源:互联网 发布:小米平板2windows版本 编辑:程序博客网 时间:2024/05/19 23:59

传智播客学习笔记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.

重定向,转发

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

原创粉丝点击