摘要:
@RequestMapping("queryUser5") public String queryUser5(String Userid,ModelMap modelMap) {// return "redirect:queryUser.ac...
阅读全文
posted @ 2017-04-15 11:43
2637282556
阅读(123)
推荐(0)
摘要:
测试使用的类:public class User { private String name;// 姓名 private Integer age;// 年龄 public String getName() { return name; ...
阅读全文
posted @ 2017-04-15 11:39
2637282556
阅读(241)
推荐(0)
posted @ 2017-04-14 19:30
2637282556
阅读(145)
推荐(0)
摘要:
模型: 1web.xml springMVC1 index.html index.htm index.jsp default.html default.htm default.jsp contextCo...
阅读全文
posted @ 2017-04-14 17:32
2637282556
阅读(233)
推荐(0)
摘要:
1.检查User类,发现注解的配置都没有错//实体User映射到表T_USER@Entity@Table(name="T_USER")public class User { @Id //数据库中的主键生成器,值为uuid @GeneratedValue(g...
阅读全文
posted @ 2017-04-14 01:47
2637282556
阅读(180)
推荐(0)
摘要:
Property ‘driverClassName’ threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com...
阅读全文
posted @ 2017-04-13 20:05
2637282556
阅读(320)
推荐(0)
摘要:
web.xml contextConfigLocation classpath*:config/springAnnotation-*.xml org.springframework.web.context.Cont...
阅读全文
posted @ 2017-04-13 18:34
2637282556
阅读(124)
推荐(0)
摘要:
web.xml contextConfigLocation classpath*:config/springAnnotation-core.xml org.springframework.web.context...
阅读全文
posted @ 2017-04-13 17:17
2637282556
阅读(127)
推荐(0)
摘要:
web.xml springMVC org.springframework.web.servlet.DispatcherServlet contextConfigLocation ...
阅读全文
posted @ 2017-04-13 10:55
2637282556
阅读(130)
推荐(0)
摘要:
1.页面传递json数据,ajax传递 jsp 姓名: 年龄: controller@Controller@RequestMapping("/test/json")public class TestJson { @RequestMapping(...
阅读全文
posted @ 2017-04-13 00:51
2637282556
阅读(150)
推荐(0)