On Spring and SpringBoot development process

Maven-based SSM project development process:

  • The first step, configure jdk, download and install tomcat
  • Next, create project
  • The third step, according to Maven project requirements to create a directory
  • A fourth step in the pom.xml definition component dependent manner and compiled
  • A fifth step, the web.xml configuration, and a variety of filters defined Dispatchservlet
  • The sixth step, create applicationContext.xml, configure various component parameters
  • A seventh step, the development of the business logic for configuration and injection xml
  • An eighth step, on-line test and Construction
  • The ninth step, manual deployment, the program labeled war package, and uploaded to the server
  • The tenth step, operation and maintenance and monitoring

Spring Boot application development process:

  • The first step, configure jdk, without having to install and deploy tomcat
  • The second step, spring offers Initializr this tool, you can generate a key application springboot
  • The third step, configuration parameters, which is an optional process, for the spring boot configuration parameters
  • The fourth step is to develop business logic
  • The fifth step, automatic construction and automatic test
  • The sixth step, automated deployment
  • The seventh step, operation and maintenance and monitoring

SpringBoot start the process:

  • The first step, loading the configuration file: application.properties
  • The second step, automatic assembly:
  • ArtifactId
  • spring-boot-starter-web, increase Web support
  • spring-boot-starter-data-jar, support for JPA, Hibernate integration
  • spring-boot-starter-logging, increase support logback log
  • spring-boot-starter-test, integration test framework unit Junit
  • The third step is to load components
  • @Repository  @Service @Controller @Component @Entity
  • The fourth step, application initialization

Class inlet SpringBoot

The class name is generally inlet end * Application
inlet class adds @SpringBootApplication annotation
using SpringApplication.run () method to start applications

 

Guess you like

Origin blog.csdn.net/qq_41937388/article/details/90728157