LEATH
@Configurationpublic class MnsConfig {@Beanpublic MNSClient getClient() {CloudAccount account = new CloudAccount(ServiceSettings.getMNSAccessKeyId(),ServiceSettings.getMNSAccessKeySecret(),ServiceSettings.getMNSAccountEndpoint());MNSClient client = account.getMNSClient();return client;}}建一个配置类使用的时候@Autowiredprivate MNSClient client 这样引入就可以了