IoC、DI和AOP思想的提出
框架的出现
相关推荐
2025-01-21
01.AOP简介
AOP的概念 AOP思想的实现方案 模拟AOP的基础代码 123456789101112131415161718192021222324252627282930313233public class MockAopBeanPostProcessor implements BeanPostProcessor, ApplicationContextAware { private ApplicationContext applicationContext; @Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { // 对 com.nju.service.impl 下的类进行增强 if (bean.getClass().getPackage().getName().equals("com.nju.service.impl")) {...
2025-01-21
01.SpringMVC简介
SpringMVC概述 SpringMVC快速入门 导入spring-mvc坐标 配置前端控制器DispatcherServlet 编写Controller,配置映射路径,并交给SpringMVC容器管理 Controller中访问容器中的Bean 1234567891011121314151617181920212223242526272829303132<!--./webapp/WEB-INF/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 ...
2025-01-21
01.Spring整合web环境
Javaweb三大组件及环境特点 Spring的web开发组件spring-web 这一部分主要要写代码实践
2025-01-21
01.传统JavaWeb开发的困惑
传统Javaweb开发困惑及解决方案
2025-01-21
02.SpringMVC的请求处理
请求映射路径的配置 请求数据的接收 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364@Controllerpublic class ParamController { @GetMapping("/param1") public String param1(String username, int age) { System.out.println(username + " : " + age); return "/index.jsp"; } @GetMapping("/param2") public String param2(@RequestParam("username") String name,...
2025-01-21
02.web层MVC框架思想与设计思路
web层MVC框架思想与设计思路