Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the springboot framework?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what is the springboot framework, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

What is the springboot framework?

Springboot is a rapidly integrated third-party framework that simplifies XML configuration using annotations, built-in Http servers (Jetty and Tomcat), and ultimately executed by Java applications

1. The principle of rapid integration of third-party framework: maven child parent dependency, which is equivalent to encapsulating dependency information with the jar of the environment that needs to be integrated.

2. No configuration file at all (annotated)

How to initialize? Traditional web project, loading the entire project process through web.xml

How does Tomcat start? Through annotations, future versions of spring3.0 provide comments

SpringMVC built-in annotations load the entire springMVC container

Use Java code to write springMVC configuration initialization

3. Built-in http server

Java language creates the Tomcat container, and loads the class file after the creation is completed

Two ways to declare bean

1 specify comment component,controller

2 use the configuration class and declare the class with configuration

Get bean, use context

Through Typ

By name

Three methods of initializing and destroying bean

Implement the interface of spring

Specify whether a method is init or destory by annotations

Through the specification of javax250

Assemble bean

Component does not have a clear role

Repository is generally used in the data access layer.

Service is generally used on the business logic layer.

Controller is generally used on the presentation layer.

Scan the package, uniformly load bean exclusion classes or include some classes

The above is all the content of this article "what is the springboot Framework?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report