MaxKeyOpenApiApplication name MaxKeyApiApplication

This commit is contained in:
MaxKey 2025-07-28 21:14:29 +08:00
parent 9baa199c0a
commit 80b5f001bc
5 changed files with 31 additions and 19 deletions

View File

@ -27,7 +27,7 @@ bootJar {
dependsOn jar dependsOn jar
archiveBaseName = 'maxkey-openapi-boot' archiveBaseName = 'maxkey-openapi-boot'
version = "${project.version}-ga" version = "${project.version}-ga"
mainClass = 'org.dromara.maxkey.MaxKeyOpenApiApplication' mainClass = 'org.dromara.maxkey.MaxKeyApiApplication'
manifest { manifest {
attributes( attributes(
"Implementation-Title": project.name, "Implementation-Title": project.name,

View File

@ -40,7 +40,7 @@ jib {
} }
container { container {
mainClass = "org.dromara.maxkey.MaxKeyOpenApiApplication" mainClass = "org.dromara.maxkey.MaxKeyApiApplication"
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9525','-Duser.timezone=Asia/Shanghai'] jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9525','-Duser.timezone=Asia/Shanghai']
ports = ['9525'] ports = ['9525']
} }
@ -49,8 +49,12 @@ jib {
//build.configure { finalizedBy jib } //build.configure { finalizedBy jib }
dependencies { dependencies {
implementation project(":maxkey-common") implementation project(":maxkey-commons:maxkey-cache")
implementation project(":maxkey-core") implementation project(":maxkey-commons:maxkey-common")
implementation project(":maxkey-commons:maxkey-core")
implementation project(":maxkey-commons:maxkey-crypto")
implementation project(":maxkey-entity")
implementation project(":maxkey-persistence") implementation project(":maxkey-persistence")
implementation project(":maxkey-starter:maxkey-starter-captcha") implementation project(":maxkey-starter:maxkey-starter-captcha")

View File

@ -27,7 +27,7 @@ bootJar {
dependsOn jar dependsOn jar
archiveBaseName = 'maxkey-openapi-boot' archiveBaseName = 'maxkey-openapi-boot'
version = "${project.version}-ga" version = "${project.version}-ga"
mainClass = 'org.dromara.maxkey.MaxKeyOpenApiApplication' mainClass = 'org.dromara.maxkey.MaxKeyApiApplication'
manifest { manifest {
attributes( attributes(
"Implementation-Title": project.name, "Implementation-Title": project.name,
@ -40,8 +40,12 @@ bootJar {
} }
dependencies { dependencies {
implementation project(":maxkey-common") implementation project(":maxkey-commons:maxkey-cache")
implementation project(":maxkey-core") implementation project(":maxkey-commons:maxkey-common")
implementation project(":maxkey-commons:maxkey-core")
implementation project(":maxkey-commons:maxkey-crypto")
implementation project(":maxkey-entity")
implementation project(":maxkey-persistence") implementation project(":maxkey-persistence")
implementation project(":maxkey-starter:maxkey-starter-captcha") implementation project(":maxkey-starter:maxkey-starter-captcha")

View File

@ -4,8 +4,12 @@ description = "maxkey-web-openapi"
apply plugin: 'java' apply plugin: 'java'
dependencies { dependencies {
implementation project(":maxkey-common") implementation project(":maxkey-commons:maxkey-cache")
implementation project(":maxkey-core") implementation project(":maxkey-commons:maxkey-common")
implementation project(":maxkey-commons:maxkey-core")
implementation project(":maxkey-commons:maxkey-crypto")
implementation project(":maxkey-entity")
implementation project(":maxkey-persistence") implementation project(":maxkey-persistence")
implementation project(":maxkey-starter:maxkey-starter-captcha") implementation project(":maxkey-starter:maxkey-starter-captcha")

View File

@ -35,25 +35,25 @@ import org.springframework.context.ConfigurableApplicationContext;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@MapperScan("org.dromara.maxkey.persistence.mapper,") @MapperScan("org.dromara.maxkey.persistence.mapper,")
public class MaxKeyOpenApiApplication extends SpringBootServletInitializer { public class MaxKeyApiApplication extends SpringBootServletInitializer {
static final Logger _logger = LoggerFactory.getLogger(MaxKeyOpenApiApplication.class); static final Logger _logger = LoggerFactory.getLogger(MaxKeyApiApplication.class);
public static void main(String[] args) { public static void main(String[] args) {
_logger.info("Start MaxKey OpenApi Application ..."); _logger.info("Start MaxKey Api Application ...");
ProductEnvironment.listEnvVars(); ProductEnvironment.listEnvVars();
ConfigurableApplicationContext applicationContext = SpringApplication.run(MaxKeyOpenApiApplication.class, args); ConfigurableApplicationContext applicationContext = SpringApplication.run(MaxKeyApiApplication.class, args);
new InitializeContext(applicationContext).init(); new InitializeContext(applicationContext).init();
_logger.info("MaxKey OpenApi at {}" , new DateTime()); _logger.info("MaxKey Api at {}" , new DateTime());
_logger.info("MaxKey OpenApi Server Port {}" , WebContext.getServerPort()); _logger.info("MaxKey Api Server Port {}" , WebContext.getServerPort());
_logger.info("MaxKey OpenApi started."); _logger.info("MaxKey Api started.");
} }
@Override @Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(MaxKeyOpenApiApplication.class); return application.sources(MaxKeyApiApplication.class);
} }
} }