What Spring Boot has learned

  1. Hello World: Understand the program entry (create startup class)
  2. Web program: write Controller class (@RestController), write Controller method (@GetMapping), maven depends on spring-boot-starter-web.
  3. 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.
  4. 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.
  5. Log configuration: logback-spring.xml, print different logs according to multi-environment switching.
  6. 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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325646939&siteId=291194637