springmvc目录结构
时间: 2023-10-02 12:11:20 浏览: 118
在SpringMVC中,一般的目录结构如下所示:
- src/main/java: 存放Java源代码
- src/main/resources: 存放配置文件
- src/main/webapp: 存放Web资源
- WEB-INF:
- web.xml: Web应用的配置文件
- [前端控制器ServletName]-servlet.xml: SpringMVC的核心配置文件,默认情况下会在WEB-INF目录下自动寻找该文件作为配置文件。也可以在servlet的配置中自己指定核心配置文件位置,以改变路径及名称。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [SpringMVC简介](https://blog.csdn.net/m0_52487103/article/details/118344126)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [SpringMVC入门案例,详细说明文件目录结构,导包方式及项目创建](https://blog.csdn.net/qq_32224047/article/details/107110729)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文