0


springboot 东方通(tongweb)替换tomcat(国产化)

#一.修改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 来配置文件的存放路径。

标签: spring boot 后端

本文转载自: https://blog.csdn.net/weixin_44938648/article/details/135772122
版权归原作者 小猜忌 所有, 如有侵权,请联系我们删除。

“springboot 东方通(tongweb)替换tomcat(国产化)”的评论:

还没有评论