This commit is contained in:
JiyangTang 2024-08-28 14:30:07 +08:00
parent cc8a2a6c3c
commit 0ab0702da1
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package top.baogutang.admin.config;
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ -13,6 +14,7 @@ import org.springframework.context.annotation.Configuration;
*/
@Slf4j
@Configuration
@ConditionalOnProperty(value = "spring.profiles.active", havingValue = "prod")
public class XxlJobConfig {
@Value("${xxl.job.admin.addresses}")

View File

@ -14,6 +14,12 @@ public class StaticController {
@RequestMapping
public String viewJsonParseHtml() {
// 这里返回的字符串是HTML文件名不包括扩展名
return "json-parse";
}
@RequestMapping("/coin")
public String viewCoinHtml() {
// 这里返回的字符串是HTML文件名不包括扩展名
return "coin";
}