随笔分类 -  JavaWeb

摘要:package com.du.config; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation 阅读全文
posted @ 2021-10-20 11:42 生生灯火半杯月 阅读(822) 评论(0) 推荐(0) 编辑
摘要:关键代码: 第一种:使用@WebFilter注解,基本通用 @WebFilter(dispatcherTypes = { DispatcherType.REQUEST, DispatcherType.FORWARD, DispatcherType.INCLUDE, DispatcherType.ER 阅读全文
posted @ 2021-10-13 15:37 生生灯火半杯月 阅读(200) 评论(0) 推荐(0) 编辑
摘要:在浏览器中 /开头为相对路径表示当前主机地址==>http://localhost:8080,也就是服务器目录,而不是web应用 <a href="/xxx">、<form action="/xxx">==>http://localhost:8080/xxx这显然是不对劲的我们还需要在/xxx前面加 阅读全文
posted @ 2021-09-27 00:21 生生灯火半杯月 阅读(90) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示