- Hello World: Understand the program entry (create startup class)
- Web program: write Controller class (@RestController), write Controller method (@GetMapping), maven depends on spring-boot-starter-web.
- Hot deployment: Modify Java classes, configuration files to automatically refresh deployment, intellij idea configuration to automatically compile Settings->Compiler->Build project automatically, Ctrl+Shift+Alt+/->Registry->check compiler.automake.allow.when.app .running.
- Multi-environment switching: use different configurations for development (dev), test (test), and production (prod), and configure spring.profiles.active in application.properties to specify which environment configuration to activate.
- Log configuration: logback-spring.xml, print different logs according to multi-environment switching.
- Packaging: The jar package has built-in tomcat, and the war package can be put into tomcat to run.
Reference blog: https://www.cnblogs.com/moonlightL/p/7891803.html