参考文献
附件中的 xxx.rar 改成 .jar 然后用mvn install
AAMS中间件集成
AAMS根据Spring boot 版本引入需要的依赖就好了
以下集成以中台2.1.0.0的版本作为基础集成
中台2.1.0.0 (spring boot 2.3)
1、注册starter到本地Maven仓库(或者注册到私有仓库)
本次集成只注册到本地仓库
aams-spring-boot-starter-all-2.1.7.RELEASE.jar 附件里面有
# 使用命令把aams-spring-boot-starter-all-2.1.7.RELEASE.jar注册到本地仓库
mvn install:install-file -Dfile=aams-spring-boot-starter-all-2.1.7.RELEASE.jar -DgroupId=com.apusic -DartifactId=aams-spring-boot-starter-all -Dversion=2.1.7.RELEASE -Dpackaging=jar
2、引入aams-spring-boot-starter-all-2.1.7.RELEASE.jar
<dependency>
<groupId>com.apusic</groupId>
<artifactId>aams-spring-boot-starter-all</artifactId>
<version>2.1.7.RELEASE</version>
</dependency>
3、排除tomcat的依赖
<dependency>
<groupId>cn.flyrise</groupId>
<artifactId>pai-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
4、添加授权文件 license.xml
<?xml version="1.0" encoding="UTF-8"?>
<license
product="Apusic Application Server"
edition="Agile Edition"
version="V10.0"
licensee="金蝶天燕季度测试许可"
datefrom="2024-06-06"
expiration="2024-09-30"
CPUs="1"
license_ver="43"
signature="Bzfd0hLb0eIJObvlnniM5xOcQCKGlWsrRbgRDfI3S+JiIUq8BnIac2lk5aXE94zrRuFFVf7mA7lZk/r0BOUa6V3PhHilAr/ShXcBErENFKGduMRIgXorzJPnGXwAa4j3vgQTt8H/nCqCjVd2vlIGc1HPf5p8LNBrDyHjTU3ayB0mr9RicQYwmt/UonyLmbQysbuQmCiG6zi3ayGzxGdFQI4wyNUn2b91kCU0qMJ5JRFmWD19daE76NE8qUkBxZM3cPTN3KFttHkgF8NE36D9/bNazNzMBZhDzrjkS3t/YzN0+kuasLRIBElNiN68MjikxN8ByWzlD/00gxZe/fgaHDPE/72y7PVjF5dc2KuxIMTHdZeb3UkWFqO4hkyqSJnjduPfO39uDEerEKQbJjv0gt1S4wZDCqt1M83jPnv/CLIYqd8pmM8Onjn88oFqa+ih9A3em1/r+D4LcJVmQ5kWRWhgMIOfyExb13FOJshgsUPKHgeYbdH6W802CJ1usPJXCqGABqqROVgizvGGYncOtcbU5ruDe9nWo27LdtSMBo7RBox5cLV8xx8Yg53tFNedU/GHTHFKxb31w/NL2fVcHg=="
/>
5、成功的日志
Apusic Application Server Agile Edition V10.0
Licensed to 金蝶天燕季度测试许可
Licensed from 2024-06-06 to 2024-09-30
CPUs limited to 1
... ...
Starting Servlet engine: [Apusic AAS/10.1.0SP2]
6、常见的错误
1、spring boot 版本与AAMS版本不对应
2、授权文件过期或者缺少 ,日志出现 licentse out due 等关键字
中台2024 (spring boot 3.2)
需使用 3.2.4的AAMS版本
配置文件修改(其实和上面是一样的啦,就是版本改一下)
<dependency>
<groupId>cn.flyrise</groupId>
<artifactId>pai-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.apusic</groupId>
<artifactId>aams-spring-boot-starter-all</artifactId>
<version>3.2.4</version>
</dependency>
spring boot 3.2 常见错误
1、scan jar ,可以通过添加环境变量 -Daas.util.scan.StandardJarScanFilter.jarsToSkip=*.jar 忽略错误
文档更新时间: 2024-06-26 18:00 作者:朱灿奕