摘要: @Controllerpublic class UserController { @RequestMapping(value = "/quick") public String save(){ System.out.println("controller"); return "success.jsp 阅读全文
posted @ 2021-11-14 20:49 猫白养白猫 阅读(31) 评论(0) 推荐(0)
摘要: @Configuration把一个类作为一个IoC容器,它的某个方法头上如果注册了@Bean,就会作为这个Spring容器中的Bean。@Scope注解 作用域@Lazy(true) 表示延迟初始化@Service用于标注业务层组件、@Controller用于标注控制层组件(如struts中的act 阅读全文
posted @ 2021-11-14 09:31 猫白养白猫 阅读(15) 评论(0) 推荐(0)