#一.修改pom文件
排除tomcat
<dependency><exclusions><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId></exclusion></exclusions></dependency>
添加tongweb依赖
<properties><tongweb.version>7.0.E.5</tongweb.version></properties><dependency><groupId>com.tongweb.springboot</groupId><artifactId>tongweb-spring-boot-starter-2.x</artifactId><version>${tongweb.version}</version></dependency><dependency><groupId>com.tongweb.springboot</groupId><artifactId>tongweb-spring-boot-starter-2.x</artifactId><version>${tongweb.version}</version></dependency><dependency><groupId>com.tongweb</groupId><artifactId>tongweb-embed</artifactId><version>${tongweb.version}</version></dependency>
#二.修改application.yml文件
server.tongweb.license.type = file
server.tongweb.license.path=classpath:license.dat
1.注释掉原来tomcat的相关配置
2.添加tongweb的相关配置
3添加tongweb的本地认证配置,将认证文件license.dat放到resources文件夹下
当配置项 server.tongweb.license.type = file 时,表示 license 认证方式为本地认证
通过配置项 server.tongweb.license.path 来配置文件的存放路径。
版权归原作者 小猜忌 所有, 如有侵权,请联系我们删除。