DemoApplication.java
spring_boot/code/advanced/src/main/java/com/example/demo/DemoApplication.java
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Main entry point for the Spring Boot advanced demo application.
* <p>
* This application extends the intermediate demo with Actuator (health, info, metrics),
* unit and controller tests, production profile, and Docker support.
*/
@SpringBootApplication
public class DemoApplication {
/**
* Starts the Spring Application Context and embedded web server.
*
* @param args command-line arguments (e.g. --spring.profiles.active=prod)
*/
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
관련 글
CustomHealthIndicator.java
CustomHealthIndicator.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/actuator/CustomHealthIndicator.java).
글 읽기 →SecurityConfig.java
SecurityConfig.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/config/SecurityConfig.java).
글 읽기 →ProductController.java
ProductController.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/controller/ProductController.java).
글 읽기 →PublicController.java
PublicController.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/controller/PublicController.java).
글 읽기 →ProductCreateRequest.java
ProductCreateRequest.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/dto/ProductCreateRequest.java).
글 읽기 →ProductUpdateRequest.java
ProductUpdateRequest.java — java source code from the spring boot learning materials (spring_boot/code/advanced/src/main/java/com/example/demo/dto/ProductUpdateRequest.java).
글 읽기 →