1 package com.foxinmy.weixin4j.example.controller; 2 3 import org.springframework.beans.factory.annotation.Autowired; 4 import org.springframework.stereotype.Controller; 5 import org.springframework.web.bind.annotation.RequestMapping; 6 7 import com.foxinmy.weixin4j.mp.WeixinProxy; 8 9 @Controller 10 @RequestMapping("") 11 public class IndexController { 12 @Autowired 13 private WeixinProxy weixinProxy; 14 15 @RequestMapping 16 public String index() { 17 return "index"; 18 } 19 }