![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring框架学习
刘向阳啊
格子衫,双肩包,牛仔裤
展开
-
SpringMVC-02
转发和重定向 默认转发 重定向 redirect @Controller public class ModelTest { @RequestMapping("/m1/t1") public String test01(Model model){ model.addAttribute("msg","ModelTest"); //重定向 return "redirect:/index.jsp"; }原创 2021-10-26 21:26:50 · 84 阅读 · 0 评论 -
springMVC框架--01狂神
web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/原创 2021-10-26 21:09:45 · 99 阅读 · 0 评论 -
String--狂神--静态代理和动态代理
静态代理 写死的Userservice增强 package com.liu.demo02; public class UserServiceProxy implements UserService { private UserService userService; public UserService getUserService() { return userService; } public void setUserService(UserSer原创 2021-10-14 17:59:12 · 158 阅读 · 0 评论 -
spring-依赖注入Set多种注入方式
依赖注入多种注入方式 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans原创 2021-10-12 20:06:28 · 106 阅读 · 0 评论 -
spring入门 IOC创建对象--来自狂神
User package com.liu.pojo; public class User { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } public void show(){ System.out.println("原创 2021-10-12 17:44:39 · 69 阅读 · 0 评论