Browse Source

Merge remote-tracking branch 'origin/master'

master
王寅 3 months ago
parent
commit
74a85cdda0
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      src/main/java/com/inspect/simulator/InspectSimulatorApplication.java
  2. +2
    -0
      src/main/java/com/inspect/simulator/service/impl/PatrolResultServiceImpl.java

+ 2
- 0
src/main/java/com/inspect/simulator/InspectSimulatorApplication.java View File

@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import retrofit2.Retrofit;
@ -17,6 +18,7 @@ import retrofit2.converter.scalars.ScalarsConverterFactory;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableScheduling
@RefreshScope
public class InspectSimulatorApplication {
private final static Logger log = LoggerFactory.getLogger(InspectSimulatorApplication.class);


+ 2
- 0
src/main/java/com/inspect/simulator/service/impl/PatrolResultServiceImpl.java View File

@ -20,6 +20,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import retrofit2.Call;
@ -33,6 +34,7 @@ import java.util.concurrent.*;
import java.util.stream.Collectors;
@Service
@RefreshScope
public class PatrolResultServiceImpl implements PatrolResultService {
@Value("${upper.stationCode:30000001-112967078}")


Loading…
Cancel
Save