ControllerClassNameHandlerMapping

【ControllerClassNameHandlerMapping】生也有涯,知也无涯。这篇文章主要讲述ControllerClassNameHandlerMapping相关的知识,希望能为你提供帮助。
 
 

< ?xml version="1.0" encoding="UTF-8"?> < beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd"> < bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/> < bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> < !-- 前缀 --> < property name="prefix" value="https://www.songbingjia.com/android/view/"> < /property> < !-- 后缀 --> < property name="suffix" value="https://www.songbingjia.com/android/.jsp"> < /property> < /bean> < bean class="com.controller.HelloController"/> < /beans>

 

    推荐阅读