campus-ops-java/math-microservices/src/main/java/io/cloudops/math/MathMicroservicesApplication.java
2026-11-24 11:37:17 +08:00

27 lines
822 B
Java

package io.cloudops.math;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
/** Consolidated Spring Boot host for the 3-endpoint Math Microservices lab. */
@SpringBootApplication
public class MathMicroservicesApplication {
/**
* Entry point for running Adder, Multiplier, and Gateway Solver services.
*
* @param args CLI flags
*/
public static void main(final String[] args) {
SpringApplication.run(MathMicroservicesApplication.class, args);
}
/** Shared RestTemplate bean used by GatewaySolverService. */
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}