Results 2 comments of ahhflkl

private WxCpService wxCpService = new WxCpServiceImpl(); @Autowired private WxCpProperties wxCpProperties ; @RequestMapping("authorize") public void authorize(HttpServletRequest request, HttpServletResponse response) throws IOException, WxErrorException { WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl(); config.setCorpId(wxCpProperties.getCorpId()); config.setCorpSecret(wxCpProperties.getAppConfigs().get(0).getSecret()); config.setAgentId(wxCpProperties.getAppConfigs().get(0).getAgentId());...

demo我直接放到项目了 ,没有看到这块是怎么设置的