1234567891011121314151617181920212223242526 |
- package com.iamberry.wechat.handles.wx;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.ResponseBody;
- import org.springframework.web.servlet.ModelAndView;
- import javax.servlet.ServletException;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import java.io.IOException;
- /**
- * Created by Administrator on 2017/12/29.
- */
- @Controller
- @RequestMapping("/wechat")
- public class QrCodeHandler {
- @RequestMapping("/qr/{qrCode}")
- public void getQrCode(@PathVariable("qrCode") String qrCode, HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException {
- res.sendRedirect("http://w.iamberry.com/tooth/view/default.html?qrCode="+qrCode);
- }
- }
|