SpringMVC The detailed process of file configuration , You can see springMVC Annotation configuration of environment construction 《springMVC Study three Construction of annotation development environment 》
<?xml version="1.0" encoding="UTF-8"?>
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd "> <!-- Open the package for scanning annotations
The current configuration file is DispatcherServlet Loaded
Be careful , The package where the processor is located should be in springMVC Scan in the configuration file of , Can't be in spring In the configuration file
scanning , Because the processor has to register to springMVC In the container , That is to say controller The package you are in needs to be SpringMVC Container scan ,
Can not be Spring The container is scanned
<!-- Annotation driven -->
The above annotation is equivalent to the following two classes
<!-- Release static resources , Do not block static resources -->
<!-- /js/* Represents... Under the project js All the files in the folder
/js/js** Represents... Under the project js All the files in the folder and all the files in the subfolder
<mvc:resources location="/js/" mapping="/js/**"></mvc:resources>
above mapping Represents the request path of the requested resource ,location The path of the server where the requested resource is located
The following representatives ： Just find out Request path accord with /js/** Format , Go to the local server where the current project is located /js/ Go down the path to find resources -->
<mvc:resources location="/js/" mapping="/js/**"></mvc:resources>
<mvc:resources location="/css/" mapping="/css/**"></mvc:resources>
<mvc:resources location="/images/" mapping="/images/**"></mvc:resources> <!-- register view resolver
occasionally , In order to protect the page from being accessed by others , You can put the page in the WEB-INF in ,
You can put the prefix configure "/WEB-INF/"
【 Be careful 】 The view parser is the last part of the parsing processor return Value , It's not the request that we input ourselves on the front end
If return View with prefix (forward perhaps redirect), The view parser uses the default , If there is no prefix , Use our own configuration
<bean id="viewResolver" class=" org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/"></property>
<property name="suffix" value=""></property>
SpringMVC Study Ten SSM Environment building （ 3、 ... and ）springMVC More articles on file configuration
- SpringMVC Study Nine SSM Environment building （ Two ） Spring Preparation of configuration file
spring What needs to be done in the configuration file ( One ) Turn on Service And pojo Package annotation scan Be careful :spring Scan the entity class corresponding to the table , as well as service Class of layer , It can't be used to scan Controller Class of layer , because ...
- SpringMVC Study 8、 ... and SSM Environment building （ One ） web.xml To configure
First step : Import jar package Pay attention to package compatibility , In the future maven It will be much better The second step : To configure web.xml stay web.xml in , The main configuration contents are as follows (1)spring The location of the container configuration file <!-- spr ...
- Java Develop learning experience （ One ）：SSM Environment building
Catalog Java Develop learning experience ( One ):SSM Environment building 1 SSM frame 1.1 Spring Framework 1.2 Spring MVC Java Develop learning experience ( One ):SSM Environment building A little bit .NET Open ...
- （ turn ）SpringMVC Study ( Twelve )——SpringMVC Interceptors in
http://blog.csdn.net/yerenyuan_pku/article/details/72567761 SpringMVC Our processor interceptor is similar to Servlet Filters in development Filter, ...
- 【 turn 】SpringMVC+Spring3+Hibernate4 Development environment construction
Original address : SpringMVC+Spring3+Hibernate4 Development environment construction
- （ turn ）SpringMVC Study ( Four )——Spring、MyBatis and SpringMVC Integration of
http://blog.csdn.net/yerenyuan_pku/article/details/72231763 Before I integrated Spring and MyBatis These two frames , No, you can read my article MyBa ...
- 026 SSM Comprehensive practice 02-- Data background management system -- Database table creation and SSM Environment building
1. Database preparation In this project we Oracle database ,Oracle Create separate... For each project user,oracle The data table is stored in the table space , Each user has a separate table space . (1) Use the database administrator account :SYSTEM, With the database ...
- Dark horse eesy_15 Vue：04.Vue Case study （ssm Environment building ）
Dark horse eesy_15 Vue:02. Common grammar Dark horse eesy_15 Vue:03. Life cycle Dark horse eesy_15 Vue:04.Vue Case study (ssm Environment building ) Dark horse eesy_15 Vue:04. Comprehensive case ( front end ...
- One 、Android The first day of study —— Environment building （ turn ）
( from :http://wenku.baidu.com/view/af39b3164431b90d6c85c72f.html) One . Android The first day of study —— Environment building Android Build the development environment ...
//html Code <!doctype html> <html> <head> <meta charset="UTF-8"> < ...
- 【Unity Basic knowledge three 】Unity Assets Special folder name under Directory
Unity3D Special directory name for Unity Reserved some directory names , These directories have a special meaning . More important are : Resources All the files in this directory will be packaged into the release version , Programs can access them through file paths . this ...
- Spring summary
layout: post title: Spring summary tags: [Java,Spring,IOC,AOP] --- Spring Is an open source lightweight Java SE(Java Standard Version )/Java ...
- STL Source code analysis 《4》----Traits technology
stay STL Source code , Everywhere Traits The figure of , Actually Traits It's not a grammar , More specifically, it's a technology . STL In the library , There's a function called advance, Used to put an iterator ( One with pointer behavior cla ...
- 《Genesis-3D Open source game engine -- Horizontal version of the fighting game production tutorial 06： The logic of skill play 》
6. The logic of skill play Skills play Overview : After completing the skill input and testing , The program should match the key operation input in the buffer with the skill list information read by the program , According to the matching results play the corresponding skills . Skills play principle : The contents in the key buffer ...
- Wechat small program to fill the hole page[pages/XXX/XXX] not found.May be caused by
When the page appears page[pages/XXX/XXX] not found.May be caused by :1. Forgot to add page route in app.json.2. I ...
- The connection string is configured in App.config in
<?xml version="1.0" encoding="utf-8"?> <configuration> <connectio ...
- helm Deploy
Helm Basic concepts Helm It can be understood as Kubernetes Package management tools , It's easy to find . Share and use for Kubernetes Built applications , It contains several basic concepts Chart: One Helm package , Which includes ...
- MySQL binlog Log optimization
mysql There are slow query logs in the log type , Binary log , Error log , By default , The system only opens the error log , Because opening the log will produce a large IO Performance consumption . In general , Binary logs are rarely opened in the build system (bin log),bin ...
- Node.js Basic knowledge of （ One ）
One .Buffer class 1. There are three ways to create a buffer var buffer = new Buffer(10); console.log(buffer); var buffer2 = new Buffer([1 ...