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

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐