集成小程序

web.xml

<servlet>
    <servlet-name>WeixinMiniServiceServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring/weixinmini-context.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    <async-supported>true</async-supported>
</servlet>

<servlet-mapping>
    <servlet-name>WeixinMiniServiceServlet</servlet-name>
    <url-pattern>/wm/*</url-pattern>
</servlet-mapping>

src/main/resources

增加weixinmimi-context.xml配置,添加对modulewxmini包的扫描
<context:component-scan base-package="com.material.modulewxmini">
    <context:include-filter type="annotation"
        expression="org.springframework.web.bind.annotation.ControllerAdvice" />
</context:component-scan>

添加过滤器

WeixinMiniInterceptor
weixin包里增加WxMiniVoucherService及WxMinigetInfo
WeMiniVoucher类