modify
This commit is contained in:
parent
cc8a2a6c3c
commit
0ab0702da1
@ -3,6 +3,7 @@ package top.baogutang.admin.config;
|
|||||||
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
|
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
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.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
@ -13,6 +14,7 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@ConditionalOnProperty(value = "spring.profiles.active", havingValue = "prod")
|
||||||
public class XxlJobConfig {
|
public class XxlJobConfig {
|
||||||
|
|
||||||
@Value("${xxl.job.admin.addresses}")
|
@Value("${xxl.job.admin.addresses}")
|
||||||
|
|||||||
@ -14,6 +14,12 @@ public class StaticController {
|
|||||||
|
|
||||||
@RequestMapping
|
@RequestMapping
|
||||||
public String viewJsonParseHtml() {
|
public String viewJsonParseHtml() {
|
||||||
|
// 这里返回的字符串是HTML文件名(不包括扩展名)
|
||||||
|
return "json-parse";
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/coin")
|
||||||
|
public String viewCoinHtml() {
|
||||||
// 这里返回的字符串是HTML文件名(不包括扩展名)
|
// 这里返回的字符串是HTML文件名(不包括扩展名)
|
||||||
return "coin";
|
return "coin";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user