xml aaa.xml

aaa.xml

payload = {"dealerNo" : (flowVars.resultMap == null ? null : flowVars.resultMap.dealerNo) ,"photoType" : "SV","photoTitleList":["门面全景","营业区全景","参观体验区全景","会议室","美容室","营业执照"]};]]></expression-component>
        <choice doc:name="Choice">
            <when expression="payload != null &amp;&amp; payload.dealerNo != null">
                <dubbo:execute-proxy config-ref="dubbo-interface-dealer-DealerBusinessApi" method="listDealerPhoto:dealerNo#photoType#photoTitleList" doc:name="DealerBusinessApi.listDealerPhoto"/>
                <expression-component doc:name="Expression"><![CDATA[if(payload != null && payload.result != null){
	flowVars.resultMap.storePhotos = new java.util.ArrayList();
	for (com.infinitus.gbss.dealer.result.DealerPhotoResult p : payload.result){
		flowVars.photo = new java.util.HashMap();
		flowVars.photo.put("attachmentName",p.photoTitle);
		flowVars.photo.put("attachmentResId",p.storageResId);
sub_flow.xml
	flowVars.resultMap.storePhotos = new java.util.ArrayList();
	for (com.infinitus.gbss.dealer.result.DealerPhotoResult p : payload.result){
		flowVars.photo = new java.util.HashMap();
		flowVars.photo.put("attachmentName",p.photoTitle);
		flowVars.photo.put("attachmentResId",p.storageResId);
		flowVars.photo.put("photoType",p.photoType);
		flowVars.photo.put("photoTitleCode",p.photoTitleCode);
		flowVars.photo.put("photoMongoId",p.photoMongoId);
		flowVars.resultMap.storePhotos.add(flowVars.photo);
	}
}

xml maven aliyun

settings.xml
<mirrors>
<mirror>
<id>aliyun</id>
<name>aliyun Maven</name>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<!-- <url>http://maven.oschina.net/content/groups/public</url> -->
</mirror>
</mirrors>

xml spring hibernate验证器

app.xml
<!-- validator -->
	<!-- classmate-1.4.0.jar  hibernate-validator-5.4.2.Final.jar
		jboss-logging-3.1.0.CR2.jar validation-api-2.0.1.Final.jar-->
	<bean id="localValidator"
		class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
		<property name="providerClass"
			value="org.hibernate.validator.HibernateValidator"></property>
	</bean>


	<mvc:annotation-driven validator="localValidator"></mvc:annotation-driven>

xml 春天日期转换器

app.xml
<!-- custom conveters -->
	<bean id="dateConverter"
		class="com.finshope.converter.StringToDateConverter"></bean>
	<bean id="conversionService"
		class="org.springframework.context.support.ConversionServiceFactoryBean">
		<property name="converters">
			<set>
				<ref bean="dateConverter" />
			</set>
		</property>
	</bean>
	<mvc:annotation-driven
		conversion-service="conversionService"></mvc:annotation-driven>

xml spring mvc异常解析器

app.xml
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
		<property name="defaultErrorView" value="/errors/error.jsp"></property>
		<!-- save exception to  -->
		<property name="exceptionAttribute" value="ex"></property>
		<property name="exceptionMappings">
			<props>
				<prop key="java.lang.NullPointerException">/errors/null.jsp</prop>
			</props>
		</property>
	</bean>

xml 客户帐户导航链接

Magento客户帐户导航链接块

customer-account-nav-link.xml
<!-- Remove Account Dashboard-->
<referenceBlock name="customer-account-navigation-account-link" remove="true"/>

<!-- Remove Account Information-->
<referenceBlock name="customer-account-navigation-account-edit-link" remove="true"/>

<!-- Remove Address Book-->
<referenceBlock name="customer-account-navigation-address-link" remove="true"/>

<!-- Remove My Orders-->
<referenceBlock name="customer-account-navigation-orders-link" remove="true"/>

<!-- Remove My Downloadable Products-->
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>

<!-- Remove Newsletter Subscriptions-->
<referenceBlock name="customer-account-navigation-newsletter-subscriptions-link" remove="true"/>

<!-- Remove My Credit Cards-->
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>

<!-- Remove Billing Agreements-->
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>

<!-- Remove My Product Reviews-->
<referenceBlock name="customer-account-navigation-product-reviews-link" remove="true"/>

<!-- Remove My Wish List-->
<referenceBlock name="customer-account-navigation-wish-list-link" remove="true"/>

xml spring mvc config

app.xml
<?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.xsd
  http://www.springframework.org/schema/util
  http://www.springframework.org/schema/util/spring-util.xsd
  http://www.springframework.org/schema/context 
  http://www.springframework.org/schema/context/spring-context.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc.xsd">
  
  <context:component-scan base-package="com.finshope.controller"></context:component-scan>
</beans>

xml spring maxmium config

spirng-config.xml
<?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:context="http://www.springframework.org/schema/context"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
    	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
    	http://www.springframework.org/schema/context/spring-context.xsd
    http://www.springframework.org/schema/tx
        http://www.springframework.org/schema/tx/spring-tx.xsd
    http://www.springframework.org/schema/aop
        http://www.springframework.org/schema/aop/spring-aop.xsd">
	<context:property-placeholder
		location="classpath:application.properties" />
</beans>

xml spring servlet config

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://xmlns.jcp.org/xml/ns/javaee"
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
	id="WebApp_ID" version="3.1">
	<display-name>springmvcdemo</display-name>
 
 	<context-param>
 		<param-name>contextConfigLocation</param-name>
 		<param-value>classpath:application.xml</param-value>
 	</context-param>
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
</web-app>

xml spring有用的mybatis配置

spring-mybatis.xml
<?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:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context.xsd">
	<context:property-placeholder
		location="classpath:application.properties" />

	<bean id="sqlSessionFactory"
		class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="configLocation"
			value="classpath:mybatis-config.xml"></property>
		<property name="dataSource" ref="dataSource"></property>
	</bean>

	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
		<property name="basePackage" value="com.finshope.dao"></property>
		<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property>
	</bean>
	<bean id="dataSource"
		class="org.springframework.jdbc.datasource.DriverManagerDataSource">
		<property name="driverClassName" value="${jdbc.driver}"></property>
		<property name="url" value="${jdbc.url}"></property>
		<property name="username" value="${jdbc.username}"></property>
		<property name="password" value="${jdbc.password}"></property>
	</bean>
</beans>