Commit 706e3cb7 authored by 赵啸非's avatar 赵啸非

取消redis健康检测

parent a29186b1
package com.mortals.xhx; package com.mortals.xhx;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.service.impl.LocalCacheServiceImpl;
import com.mortals.framework.springcloud.boot.BaseWebApplication; import com.mortals.framework.springcloud.boot.BaseWebApplication;
import com.mortals.xhx.swing.SwingArea; import com.mortals.xhx.swing.SwingArea;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
...@@ -9,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; ...@@ -9,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource; import org.springframework.context.annotation.ImportResource;
//@SpringBootApplication(scanBasePackages = {"com.mortals"},exclude= {DataSourceAutoConfiguration.class}) //@SpringBootApplication(scanBasePackages = {"com.mortals"},exclude= {DataSourceAutoConfiguration.class})
...@@ -17,6 +20,11 @@ import org.springframework.context.annotation.ImportResource; ...@@ -17,6 +20,11 @@ import org.springframework.context.annotation.ImportResource;
//@ImportResource(locations = {"classpath:config/spring-config.xml"}) //@ImportResource(locations = {"classpath:config/spring-config.xml"})
public class ManagerApplication extends BaseWebApplication { public class ManagerApplication extends BaseWebApplication {
@Bean
public ICacheService cacheService() {
return new LocalCacheServiceImpl();
}
public static void main(String[] args) { public static void main(String[] args) {
/* SpringApplication.run(ManagerApplication.class, args);*/ /* SpringApplication.run(ManagerApplication.class, args);*/
......
...@@ -5,6 +5,10 @@ application: ...@@ -5,6 +5,10 @@ application:
log: log:
level: @profiles.log.level@ level: @profiles.log.level@
path: @profiles.log.path@ path: @profiles.log.path@
management:
health:
redis:
enabled: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment