Files
contract-manager/server/src/main/java/com/ecep/contract/ServerV2.java
songqq ada539bebf refactor(controller): 重构控制器类名和路径,优化代码结构
feat(service): 新增QueryService接口实现,支持通用查询功能

docs(util): 完善ProxyUtils工具类的注释说明

fix(model): 修复CustomerCatalog实现IdentityEntity接口

style: 优化代码格式和导入顺序

perf(util): 提升FileUtils工具类功能,新增文件处理方法

chore: 更新README.md文件,补充UI资源路径说明

build: 更新pom.xml文件中的mainClass配置

test: 调整测试类命名和路径

ci: 更新CI配置文件中的类引用

refactor(controller): 重构表格单元格异步更新逻辑

docs(constant): 新增常量定义和注释

style: 统一代码风格和命名规范

refactor(service): 重构服务类继承关系

perf(controller): 优化表格数据加载性能

fix(service): 修复文件类型服务缓存问题

docs(model): 完善视图模型类注释

refactor(util): 重构文件工具类方法

style: 清理无用导入和代码

chore: 更新.gitignore文件

build: 调整项目依赖配置

refactor(controller): 重构控制器基类

perf(service): 优化查询服务性能

fix(controller): 修复表格数据加载异常

docs: 更新代码注释和文档

style: 统一代码缩进和格式
2025-09-13 01:02:43 +08:00

58 lines
2.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ecep.contract;
import java.time.Duration;
import java.time.Instant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
/**
* Created by Administrator on 2017/4/16.
*/
public class ServerV2 {
private static final Logger logger = LoggerFactory.getLogger(ServerV2.class);
public static void main(String[] args) {
// 配置JVM参数以解决Java代理动态加载警告
// 这些参数主要用于解决360安全卫士的Java代理(com.baize.aegis.plugin.dependency.DependencyExtension)加载问题
// 1. 启用代理使用跟踪,记录哪些代理被加载和使用
// 添加JVM参数以解决Java代理动态加载警告
// 这些警告来自360安全卫士的Java代理(com.baize.aegis.plugin.dependency.DependencyExtension)
// 1. 启用代理使用跟踪
System.setProperty("jdk.instrument.traceUsage", "true");
// 2. 明确允许动态加载的Java代理访问本地代码
// 这对于需要调用本地方法的代理(如安全软件的代理)非常重要
System.setProperty("jdk.instrument.allowNativeAccess", "true");
// 3. 设置允许动态加载代理
// 在较新版本的JDK中默认可能限制了动态加载代理的能力
// 此参数显式启用动态代理加载功能,确保安全软件的代理能够正常工作
System.setProperty("jdk.enableDynamicAgentLoading", "true");
SpringApp.application = new SpringApplication(SpringApp.class);
BufferingApplicationStartup startup = new BufferingApplicationStartup(2000);
SpringApp.application.setApplicationStartup(startup);
if (logger.isDebugEnabled()) {
logger.debug("应用程序启动参数:{}", (Object[]) args);
}
startup.start("");
SpringApp.context = SpringApp.application.run(args);
Duration between = Duration.between(startup.getBufferedTimeline().getStartTime(), Instant.now());
if (logger.isDebugEnabled()) {
logger.debug("application.run() cost:{}", between);
}
}
public static final String DEFAULT_DB_HOST = "10.84.209.154"; // "db-server1.ecctrl.com"
public static final String DEFAULT_DB_PORT = "3306";
public static final String DEFAULT_DB_USERNAME = "supplier_ms";
public static final String DEFAULT_DB_PASSWORD = "[TPdseO!JKMmlrpf";
public static final String DEFAULT_DB_DATABASE = "supplier_ms";
}