本文共 2684 字,大约阅读时间需要 8 分钟。
eclipse的xml文件提示templates的模板
<bean id="${id}" class="${class}"> ${cursor}</bean> <constructor-arg> <list> <value>${cursor}</value> </list></constructor-arg> <map> <entry key="${key}">${cursor}</entry></map> <property name="${name}">${cursor}</property> <property name="${name}" ref="${cursor}" /> <property name="${name}"> <value>${cursor}</value></property> <property name="${name}" value="${cursor}" /> <ref bean="${id}"/>${cursor} <ref local="${id}"/>${cursor} <!-- Launches new flow executions and resumes existing executions. -->${cursor}<flow:executor id="${flowExecutor}" registry-ref="${flowRegistry}" repository-type="${singlekey}" /> <!-- Creates the registry of flow definitions for this application -->${cursor}<flow:registry id="${flowRegistry}"> <flow:location path="/WEB-INF/fileupload.xml" /></flow:registry>
这里是eclipse自带的xml模板
<!-- ${cursor} --> <!-- needed for ContextLoaderListener --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>${location}${cursor}</param-value> </context-param> <!-- Bootstraps the root web application context before servlet initialization --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> xmlns="default namespace" <!-- The front controller of this Spring Web application, responsible for handling all application requests --> <servlet> <servlet-name>springDispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>${location}${cursor}</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Map all requests to the DispatcherServlet for handling --> <servlet-mapping> <servlet-name>springDispatcherServlet</servlet-name> <url-pattern>${url}</url-pattern> </servlet-mapping> xsi:noNamespaceSchemaLocation="{location}" xsi:schemaLocation="{namespace} {location}" <?xml version="1.0" encoding="${encoding}"?> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <?xml-stylesheet type="text/xsl" href="${cursor}"?>
转载地址:http://okmia.baihongyu.com/