打个小广告:作者博客地址:http://nbsanke.top:68
sk-ews基本介绍
sk-ews是wangzy基于ews(ExchangeWebService)Api二次开发构建出来的基于SpringBoot的Starter,开发者只需要通过maven或gradle或引入lib包形式引入本jar即可快速对ExchangeWebService进行二次开发
快速开始(当前版本号为:0.0.4)
目前仅在私服上传,有需要可联系作者qq:1197983391
maven:
<dependency>
<groupId>com.sanke</groupId>
<artifactId>sk-ews</artifactId>
<version>0.0.4</version>
</dependency>
gradle:
compile "com.sanke:sk-ews:0.0.4"
sk-ews基本接口介绍
起步
sk-ews在使用之前需要注入配置信息(已废弃,0.0.1版本适用)
示例代码如下:
@Bean
public EwsConfigProperties ewsConfigProperties() {
EwsConfigProperties ewsConfigProperties = new EwsConfigProperties();
ewsConfigProperties.setServerUrl("https://dc1.nbsanke.top/EWS/Exchange.asmx");
ewsConfigProperties.setServerHost("dc1.nbsanke.top");
return ewsConfigProperties;
}
在启动类中加上
@ComponentScan("com.sanke")
ews相关接口都在EwsService接口类中
ews相关接口实现