当前位置: 首页 > news >正文

深圳高端网站建设收费购销网

深圳高端网站建设收费,购销网,昆明网站设计公司,怎么在百度建设网站1.将ClientDemo下的cn文件夹的内容导入项目对应的java目录下。 2.将license-config.properties文件导入resources目录下。 3.在项目的pom.xml中添加如下依赖。 <properties><!-- Apache HttpClient --><httpclient>4.5.5</httpclient><!-- License…

1.将ClientDemo下的cn文件夹的内容导入项目对应的java目录下。

2.将license-config.properties文件导入resources目录下。

在这里插入图片描述

3.在项目的pom.xml中添加如下依赖。

    <properties><!-- Apache HttpClient --><httpclient>4.5.5</httpclient><!-- License --><truelicense>1.33</truelicense></properties></dependencies>下:<!-- Apache HttpClient --><dependency><groupId>org.apache.httpcomponents</groupId><artifactId>httpclient</artifactId><version>${httpclient}</version></dependency><!-- Jackson对自动解析JSON和XML格式的支持 --><dependency><groupId>com.fasterxml.jackson.jaxrs</groupId><artifactId>jackson-jaxrs-json-provider</artifactId></dependency><dependency><groupId>com.fasterxml.jackson.dataformat</groupId><artifactId>jackson-dataformat-xml</artifactId></dependency><!-- License --><dependency><groupId>de.schlichtherle.truelicense</groupId><artifactId>truelicense-core</artifactId><version>${truelicense}</version></dependency><dependency><groupId>net.sourceforge.nekohtml</groupId><artifactId>nekohtml</artifactId><version>1.9.22</version></dependency>最后:<resources><resource><directory>src/main/resources</directory></resource><resource><directory>src/main/java</directory><includes><include>**/*.properties</include><include>**/*.xml</include><include>**/*.tld</include></includes><filtering>false</filtering></resource></resources>

4.在BcdFlightApplication.java启动项中添加:

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;@ServletComponentScan
@ComponentScan(basePackageClasses = {BcdFlightApplication.class, LicenseCheckListener.class})
@PropertySource({"license-config.properties"}) //加载额外的配置
public class BcdFlightApplication extends SpringBootServletInitializer {  ...  }

5.在WebMvcConfig.java中添加需要校验的接口。

    /*** 添加拦截器*/@Overridepublic void addInterceptors(InterceptorRegistry registry) {registry.addInterceptor(new LicenseCheckInterceptor()).addPathPatterns("/flight/hlFlyPlan/**");registry.addInterceptor(new LicenseCheckInterceptor()).addPathPatterns("/flight/hlFlyDemand/**");}

6.linux执行license.sh文件,获取认证所需相关信息;

windows执行(获取IP,mac,CPU,主板信息.bat)文件,获取认证所需相关信息。

7.使用JDK自带的 keytool 工具生成公私钥证书库:

#生成命令
keytool -genkeypair -keysize 1024 -validity 3650 -alias "privateKey" -keystore "privateKeys.keystore" -storepass "public_password1234" -keypass "private_password1234" -dname "CN=localhost, OU=localhost, O=localhost, L=SH, ST=SH, C=CN"#导出命令
keytool -exportcert -alias "privateKey" -keystore "privateKeys.keystore" -storepass "public_password1234" -file "certfile.cer"#导入命令
keytool -import -alias "publicCert" -file "certfile.cer" -keystore "publicCerts.keystore" -storepass "public_password1234"

windows:将privateKeys.keystore,publicCerts.keystore导入C:/layman/目录下
Linux:将privateKeys.keystore,publicCerts.keystore导入/layman/目录下

8.本地启动ServerDemo服务,在postman中执行http://127.0.0.1:7000/license/generateLicense,生成license.lic文件。

windows:将license.lic导入C:/layman/目录下
Linux:将license.lic导入/layman/目录下

9.运行程序,查看证书安装情况。

在这里插入图片描述

http://www.yayakq.cn/news/723116/

相关文章:

  • 申报网站做团购网站商品从哪里找
  • 防止网站流量被刷ppt模板大全百度云
  • 网站开发工具高德地图导航最新版下载
  • 网赌网站怎么建设怎么创建一个博客网站
  • 请人做网站卖东西好吗微信广告推广价格表
  • 网站推广的具体方案wordpress账号admin
  • wordpress网站编辑网站建设技术李京文
  • 青岛崂山建设局网站app怎样制作软件
  • 加强网站集约化建设平面设计师的工作内容
  • 城北区工程建设信息网站磁县网站制作公司
  • 网上装修公司网站策划书做软装搭配的网站
  • 网站接电话网站的布局有哪些
  • 请人建网站需要多少钱做爰明星视频网站
  • 业务推广网站按文章标题相关wordpress
  • 有什么比较好的画册设计网站网站建设和使用情况
  • 微信营销网站(含html源文件)免费下载wordpress教程 gofair
  • 蚌埠市网站建设手机之家下载安装
  • 沈阳工程招标信息网西安官网seo方法
  • 福州网站建设个人兼职在网上那里能接单做网站
  • 网站程序授权码wordpress 分类目录页面
  • 定制旅游网站建设方案杭州网站建设是什么
  • 做网站咋做阿里云建站费用
  • 做网站app价格多少钱门户网站的细分模式有
  • 做网页去哪些网站找素材较好大一网页设计期末作品
  • 崇明苏州网站建设襄阳市建设工程造价管理站网站
  • wordpress商城建站工商网站备案查询
  • asp.net做网站原理阿里巴巴网站详情页怎么做的
  • 用vs2010做免费网站模板下载在线设计平台哪个好
  • 深圳.网站建设cumfoot wordpress
  • 网站建设中有关数据库问题网站设计与制作教程1