Skip to content

Commit

Permalink
Merge pull request #23 from anyilanxin/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
zxuanhong authored Feb 3, 2024
2 parents 5e7f630 + d4cc17d commit 6e1951c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
*/
package com.anyilanxin.anyicloud.corecommon.config;

import java.net.InetAddress;
import java.net.UnknownHostException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
Expand All @@ -39,6 +37,9 @@
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
* 打印启动信息
*
Expand Down Expand Up @@ -83,6 +84,13 @@ public void run(ApplicationArguments args) throws Exception {
String profilesActive = environment.getProperty("spring.profiles.active");
String version = environment.getProperty("spring.application.version");
String projectName = environment.getProperty("spring.application.name");
log.info("\n-----------------------------------------------------------------------------\n" + "SkillFull Cloud Application(" + projectName + " v" + version + " " + (StringUtils.isNotBlank(profilesActive) ? profilesActive : "") + ")is running! Access URLs:\n" + "\tWebsite Preview:\thttps://skillfull.divisu.com\n" + "\tApi Url Prefix:\t\thttp://" + ip + ":" + port + path + "\n" + "\tSwagger Ui:\t\t\thttp://" + ip + ":" + port + swaggerUrl + "\n" + "-----------------------------------------------------------------------------");
// @formatter:off
log.info("\n-----------------------------------------------------------------------------\n"
+ "AnYi Cloud Application(" + projectName + " v" + version + " " + (StringUtils.isNotBlank(profilesActive) ? profilesActive : "") + ")is running! Access URLs:\n"
+ "\tWebsite Preview:\thttps://anyilanxin.com\n"
+ "\tApi Url Prefix:\thttp://" + ip + ":" + port + path + "\n"
+ "\tSpring Doc Ui:\thttp://" + ip + ":" + port + swaggerUrl + "\n"
+ "-----------------------------------------------------------------------------");
// @formatter:off
}
}
6 changes: 3 additions & 3 deletions anyi-cloud-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ dependencies {
api "org.codehaus.groovy:groovy-all:3.0.13"
// camunda------end
// mybatis plus------start
api "com.baomidou:mybatis-plus-extension:3.5.3.1"
api "com.baomidou:mybatis-plus-annotation:3.5.3.1"
api "com.baomidou:mybatis-plus-boot-starter:3.5.3.1"
api "com.baomidou:mybatis-plus-extension:3.5.3.2"
api "com.baomidou:mybatis-plus-annotation:3.5.3.2"
api "com.baomidou:mybatis-plus-boot-starter:3.5.3.2"
api "com.baomidou:dynamic-datasource-spring-boot-starter:3.6.1"
// mybatis plus------end
// okhttps-----start
Expand Down

0 comments on commit 6e1951c

Please sign in to comment.