2017年11月3日

Spring mvc中@Value

摘要: applicationContext.xml database.properties 阅读全文

posted @ 2017-11-03 15:31 任性的大萝卜 阅读(326) 评论(0) 推荐(0) 编辑

Spring mvc中@RequestParam 基本用法

摘要: 使用@RequestParam可以将URL中的请求参数,绑定到方法的入参上,并通过@RequestParam的3个参数进行配置 其实不使用@RequestParam,SpringMVC也会将request的parameter自动绑定到method的parameter中, 使用@RequestPara 阅读全文

posted @ 2017-11-03 13:42 任性的大萝卜 阅读(2021) 评论(0) 推荐(0) 编辑

Spring mvc中@RequestMapping 基本用法

摘要: 1)最基本的,方法级如上应用,例如: 1 @RequestMapping(value="/departments") 2 public String simplePattern(){ 3 4 System.out.println("simplePattern method was called"); 阅读全文

posted @ 2017-11-03 13:15 任性的大萝卜 阅读(123) 评论(0) 推荐(0) 编辑

导航