修改及部署

This commit is contained in:
huzhengkao 2025-07-01 09:16:59 +08:00
parent 1d618b7677
commit 2f098590e5
5 changed files with 24 additions and 100 deletions

17
deploy/start.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# 创建日志目录
mkdir -p ./logs
# 启动应用并后台运行仅保留edh-server.log
nohup java -jar supervision-edh-1.0.0.jar \
--logging.file.path=./logs \
--logging.file.name=./logs/edh-server.log \
> /dev/null 2>&1 &
# 记录PID
echo $! > ./edh-server.pid
echo "应用已在后台运行"
echo "PID: $(cat ./edh-server.pid)"
echo "日志文件: ./logs/edh-server.log"

View File

@ -33,7 +33,7 @@ public class SupervisionEdhClient {
/**
* 请求url
*/
private static final String url = "http://localhost:1788/supervision/edh/receive";
private static final String url = "http://192.168.200.45:1788/supervision/edh/receive";
//private static final String url = "http://222.221.246.3:1788/supervision/edh/receive";
/**
* 证书地址
@ -54,7 +54,7 @@ public class SupervisionEdhClient {
public static void main(String[] args) throws Exception {
//数据文件内容主业务类型 10基础信息数据 20应用信息数据
//subType数据文件内容子业务类型 详见数据类型字典表 基本信息(1011-10199001-9002) 应用信息2011-20202051-2053
testProv("1015");
testProv("1011");
}
public static void testProv(String subType) throws Exception {

View File

@ -1,94 +0,0 @@
package com.supervision.edh.constant;
/**
* 返回状态码
*
* @author tcctyn
*/
public class HttpStatus
{
/**
* 操作成功
*/
public static final int SUCCESS = 200;
/**
* 对象创建成功
*/
public static final int CREATED = 201;
/**
* 请求已经被接受
*/
public static final int ACCEPTED = 202;
/**
* 操作已经执行成功但是没有返回数据
*/
public static final int NO_CONTENT = 204;
/**
* 资源已被移除
*/
public static final int MOVED_PERM = 301;
/**
* 重定向
*/
public static final int SEE_OTHER = 303;
/**
* 资源没有被修改
*/
public static final int NOT_MODIFIED = 304;
/**
* 参数列表错误缺少格式不匹配
*/
public static final int BAD_REQUEST = 400;
/**
* 未授权
*/
public static final int UNAUTHORIZED = 401;
/**
* 访问受限授权过期
*/
public static final int FORBIDDEN = 403;
/**
* 资源服务未找到
*/
public static final int NOT_FOUND = 404;
/**
* 不允许的http方法
*/
public static final int BAD_METHOD = 405;
/**
* 资源冲突或者资源被锁
*/
public static final int CONFLICT = 409;
/**
* 不支持的数据媒体类型
*/
public static final int UNSUPPORTED_TYPE = 415;
/**
* 系统内部错误
*/
public static final int ERROR = 500;
/**
* 接口未实现
*/
public static final int NOT_IMPLEMENTED = 501;
/**
* 系统警告消息
*/
public static final int WARN = 601;
}

View File

@ -64,7 +64,7 @@ public class BouncyCastlePFXGenerator {
public static void main(String[] args) {
try {
generatePFX("edh.pfx", "YnYp123456");
generatePFX("edh_prod.pfx", "YnYp@20256.30");
System.out.println("使用Bouncy Castle生成的PFX证书成功!");
} catch (Exception e) {
e.printStackTrace();

View File

@ -35,8 +35,9 @@ logging:
cert:
#本地
path: D:\ynyp\药品追溯\d2d\edh.pfx
#path: D:\ynyp\药品追溯\d2d\edh_prod.pfx
#服务器
#path: /app/cert/edh.pfx
password: YnYp123456
path: /home/sysroot/workspace/supervision-v4/jar-file/supervision-edh/cert/edh.pfx
algorithm: RSA
#password: YnYp123456
password: YnYp@20256.30