通过两种方式整合钉钉sdk
1.直接引入pom文件修改
在src平级目录下创建lib文件夹,将sdk文件拷入该目录下
<dependency>
<groupId>com.extend.jar</groupId>
<artifactId>sdk</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/lib/taobao-sdk-java-auto_1479188381469-20200111.jar</systemPath>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</<plugins>
<resources>
<resource>
<directory>src/lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
</build>
2.将sdk打成本地pom文件
mvn install:install-file -Dfile=taobao-sdk-java-auto_1479188381469-20200111.jar -DgroupId=com.alibaba -DartifactId=taobao-sdk-java-auto -Dversion=1.0 -Dpackaging=jar
pom引入
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>taobao-sdk-java-auto</artifactId>
<version>1.0</version>
</dependency>
异常信息:
Consider defining a bean of type 'XXX.service' in your configuration.
springboot
没有扫描到service
类,service的实现类要加上@Service注解