会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Her4c
人生何处不青山.
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2020年5月6日
Day66 文件上传和下载
摘要: 1.思维导图 2.代码部分 文件上传页面代码 <form action="${pageContext.request.contextPath}/upload" method="post" enctype="multipart/form-data"> 描述:<input type="text" nam
阅读全文
posted @ 2020-05-06 21:37 Her4c
阅读(163)
评论(0)
推荐(0)
2020年5月1日
Day61-Day65 JSP技术整合
摘要: 1.思维导图 2.代码部分 操作域 page域 <% //往pageContext域中存储了一个msg变量 pageContext.setAttribute("msg" ,"hello page msg"); %> <% //往pageContext域中存储了一个msg变量 Object msg =
阅读全文
posted @ 2020-05-01 17:05 Her4c
阅读(166)
评论(0)
推荐(0)
2020年4月24日
Day60 综合案例
摘要: 1.思维导图 2.代码部分 监听器的注解开发 @WebListener @WebListener public class MyServletContextLIstener implements ServletContextListener { @Override public void conte
阅读全文
posted @ 2020-04-24 20:29 Her4c
阅读(155)
评论(0)
推荐(0)
2020年4月23日
Day59 过滤器补充、监听器
摘要: 1.思维导图 2.代码部分 过滤器:屏蔽敏感词 @WebFilter( filterName = "SensitiveWordsFilter" , urlPatterns = "/*", initParams = { @WebInitParam(name = "word1",value = "山寨"
阅读全文
posted @ 2020-04-23 19:01 Her4c
阅读(121)
评论(0)
推荐(0)
2020年4月22日
Day58 自定义DbUtils补充、过滤器
摘要: 1.思维导图 2.代码部分 自定义DbUtils:MyBeanHandler public class MyBeanHandler<T> implements MyResultSetHandler<T> { private Class<T> clazz;//User类Class对象,也可以是Stud
阅读全文
posted @ 2020-04-22 19:32 Her4c
阅读(109)
评论(0)
推荐(0)
2020年4月21日
Day57 Session补充、自定义DbUtils
摘要: 1.思维导图 2.代码部分 session案例:登录 登录功能(UserDao) public class UserDaoImpl implements UserDao { @Override public User login(User inputUser) throws SQLException
阅读全文
posted @ 2020-04-21 20:19 Her4c
阅读(133)
评论(0)
推荐(0)
2020年4月20日
Day56 会话技术Cookie/Session
摘要: 1.思维导图 2.代码部分 Cookie基本使用 获取Cookie Cookie[] cookies = request.getCookies(); Cookie cookie = null; for(Cookie sonCookie : cookies){ if("msg".equals(sonC
阅读全文
posted @ 2020-04-20 20:09 Her4c
阅读(154)
评论(0)
推荐(0)
2020年4月19日
关于IntelliJ IDEA启动Tomcat项目,控制台中文乱码问题的解决方案
摘要: 首先,找到Tomcat目录下的 D:\myapp\apache-tomcat-8.5.53\conf\logging.properties 修改配置文件前做好备份 java.util.logging.ConsoleHandler.encoding = GBK 默认为UTF-8,修改为GBK即可 具体
阅读全文
posted @ 2020-04-19 21:01 Her4c
阅读(308)
评论(0)
推荐(0)
2020年4月17日
Day55 request/response补充
摘要: 1.思维导图 2.代码部分 request操作请求参数 实现 1 //获取指定参数值 2 String username = request.getParameter("username"); 3 String password = request.getParameter("password");
阅读全文
posted @ 2020-04-17 20:03 Her4c
阅读(139)
评论(0)
推荐(0)
2020年4月16日
Day54 元注解补充、综合案例、request/response
摘要: 1.思维导图 2.代码部分 元注解 @Target 定义 @Target(value = { ElementType.TYPE , ElementType.FIELD , ElementType.METHOD , ElementType.PARAMETER , ElementType.LOCAL_V
阅读全文
posted @ 2020-04-16 20:33 Her4c
阅读(148)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告