# week04 **Repository Path**: javegui/week04 ## Basic Information - **Project Name**: week04 - **Description**: week04 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-24 - **Last Updated**: 2021-03-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # week04 #### 介绍 - 完善 my dependency-injection 模块 脱离 web.xml 配置实现 ComponentContext 自动初始化 - 使用独立模块并且能够在 user-web 中运行成功 完善 my-configuration 模块 Config 对象如何能被 my-web-mvc 使用 可能在 ServletContext 获取如何通过 ThreadLocal 获取 - 去提前阅读 Servlet 规范中 Security 章节(Servlet 容器安全) #### 如何运行该项目 cd user-platform mvn clean package -U java -jar target/user-web-v1-SNAPSHOT-war-exec.jar #### 使用说明 请求地址:http://localhost:8080/hello/world 返回结果:系统默认用户名:xxxx 表示实现下以下功能: - 通过my-configuration 获取到系统user.name 属性值 - 脱离 web.xml 配置实现 ComponentContext 自动初始化