会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
97
98
99
100
101
102
103
104
105
···
337
下一页
2022年1月1日
默认servlet
摘要: 1 各类Web服务器默认servlet名称 Web容器默认servlet名称 Tomcat, Jetty, JBoss, and GlassFish default Google App Engine _ah_default Resin resin-file WebLogic FileServlet
阅读全文
posted @ 2022-01-01 18:14 emanlee
阅读(282)
评论(0)
推荐(0)
2021年12月31日
Spring MVC 中 DefaultServletHandlerConfigurer
摘要: <mvc:default-servlet-handler/> 这个Spring MVC xml文件的属性,主要是处理web项目的静态文件问题。 每次请求过来,先经过 DefaultServletHttpRequestHandler 判断是否是静态文件,如果是静态文件,则进行处理,不是则放行交由 Di
阅读全文
posted @ 2021-12-31 22:30 emanlee
阅读(1455)
评论(0)
推荐(0)
Spring @CookieValue注解 @SessionAttributes注解 @ModelAttribute注解
摘要: @CookieValue注解org.springframework.web.bind.annotation包下的 @CookieValue注解,该注解类型用于将请求的Cookie数据映射到功能处理方法的参数上。同样,它和@RequestHeader,还有@RequestParam注解一样,有相同的4
阅读全文
posted @ 2021-12-31 20:40 emanlee
阅读(115)
评论(0)
推荐(0)
Spring MVC @RequestHeader
摘要: org.springframework.web.bind.annotation包下 @RequestHeader注解,该注解类型用于将请求的头的信息区域数据映射到功能处理方法的参数上。 那么@RequestHeader注解有什么属性呢?它和@RequestParam注解一样,也有4种属性,分别如下:
阅读全文
posted @ 2021-12-31 20:33 emanlee
阅读(269)
评论(0)
推荐(0)
Spring MVC @PathVaribale注解
摘要: @PathVaribale注解 org.springframework.web.bind.annotation 包下的 @PathVaribale 注解,该注解类型可以非常方便的获得请求url中的动态参数。@PathVaribale注解只支持一个属性value,类型String,表示绑定的名称,如果
阅读全文
posted @ 2021-12-31 20:28 emanlee
阅读(225)
评论(0)
推荐(0)
Spring MVC @RequestParam注解
摘要: org.springframework.web.bind.annotation包下 @RequestParam 注解,该注解类型用于将指定的请求参数赋值给方法中的形参。那么@RequestParam注解有什么属性呢?它有4种属性,下面将逐一介绍这四种属性: 1、name属性 该属性的类型是Strin
阅读全文
posted @ 2021-12-31 19:15 emanlee
阅读(388)
评论(0)
推荐(0)
Spring @EnableWebMvc
摘要: Spring @EnableWebMvc @Configuration表示这是Java配置类; @EnableWebMvc注解用于启动Spring MVC特性。
阅读全文
posted @ 2021-12-31 18:45 emanlee
阅读(54)
评论(0)
推荐(0)
Spring @ComponentScan
摘要: @ComponentScan 与ComponentScan注解相对应的XML配置就是<context:component-scan/>, 根据指定的配置自动扫描 package,将符合条件的组件加入到IOC容器中; @ComponentScan用于类或接口上主要是指定扫描路径,spring会把指定路
阅读全文
posted @ 2021-12-31 18:44 emanlee
阅读(70)
评论(0)
推荐(0)
Spring @Configuration @Import
摘要: Spring @Configuration @Configuration 用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被 @Bean 注解的方法,这些方法将会被 AnnotationConfigApplicationContext 或 AnnotationConfigWebA
阅读全文
posted @ 2021-12-31 18:43 emanlee
阅读(270)
评论(0)
推荐(0)
Spring @Autowired
摘要: @Autowired @Autowired 默认按类型匹配的方式,在容器查找匹配的Bean,当有且仅有一个匹配的Bean时,Spring 将其注入到 @Autowired 标注的变量中。 如果容器中没有一个和标注变量类型匹配的 Bean,Spring容器启动时将报 NoSuchBeanDefinit
阅读全文
posted @ 2021-12-31 18:40 emanlee
阅读(91)
评论(0)
推荐(0)
上一页
1
···
97
98
99
100
101
102
103
104
105
···
337
下一页