Why POM You do not need a version to import dependencies in an XML file?
SpringBoot is a Maven project in the final analysis. We usually start from POM XML file; In the past, whether it was java web or SSM, we were in POM The import dependency in the XML file needs to implement its version, but there is no version in the SpringBoot project ...
Posted by ThunderAI on Sun, 08 May 2022 07:00:13 +0300
preface
Recursion is a very important algorithm idea. You need to master it whether you are front-end development or back-end development. In daily work, recursive algorithms are needed to count the size of folders, parse xml files and so on. It's too basic and important, which is why interviewers often ask us to write recursive algorithms. In ...
Posted by NoMansLand on Sun, 08 May 2022 06:34:17 +0300
Article reference source I'll start with the following principles when the startup class starts. It's also an entry point for my own learning! First, there is an annotation @ SpringbootApplication on the startup class. This annotation is a composite annotation or derived annotation, which contains three annotations:
@Target(ElementType.TYPE)
@ ...
Posted by Web For U on Sat, 07 May 2022 10:19:46 +0300
@[TOC]
xml way to customize the implementation of the Ioc container
Use xml to implement a custom simple Ioc container
foreword
In the usual development process, we all use Spring for development. The Ioc container at the core of Spring helps us to create objects. This process is called inversion of control, also called Ioc.When an object is in ...
Posted by roydukkey on Sat, 07 May 2022 07:32:39 +0300
1. Basic use of spring
Guide Package:
commons-logging-1.2.jar
spring-beans-5.2.3.RELEASE.jar
spring-context-5.2.3.RELEASE.jar
spring-core-5.2.3.RELEASE.jar
spring-expression-5.2.3.RELEASE.jar
Write configuration: Person.java package com.mashibing.bean;
public class Person {
private int id;
private String name;
private int ...
Posted by oliverj777 on Sat, 07 May 2022 04:31:33 +0300
Notes and their functions:
@Configuration: configuration annotation, which is modified on the configuration class. It tells Spring that this is a configuration class, and the configuration class is equivalent to the configuration file.
@ComponentScan: component scanning annotation, decorated on the configuration class, specifies the package t ...
Posted by Shawazi on Sat, 07 May 2022 01:07:17 +0300
I met a very strange problem while debugging the company's project a few days ago. Today I'll study it here
Follow official account: Java architects alliance, update technical articles every day
scene
As a PDA interface is newly added to the company to query the historical parking flow data, I first check the qualified data from the database ...
Posted by Sangre on Fri, 06 May 2022 20:42:28 +0300
Send HTTP requests using Feign
In the usual HTTP calls, the RestTemplate provided by the government has always been used for remote calls. This call method redundancies the assembly code into the normal business code, which is not elegant enough. Therefore, after contacting Feign, consider using Feign as an HTTP sending basis for remote calls.
...
Posted by duclet on Fri, 06 May 2022 15:05:17 +0300
Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it
Data processing and jump
ModelAndView
Set the ModelAndView object and jump to the specified page according to the name of the view and the view parser
Page: {view parser prefix} + viewN ...
Posted by girlzz on Fri, 06 May 2022 10:48:34 +0300
A brief overview of the principle
The various starter s of springboot are simply to load the configuration classes @Configuration in various dependency packages. These configuration classes must be org.springframework.boot.autoconfigure.EnableAutoConfiguration in the spring.factories file in the resources/META-INF directory of the module. decl ...
Posted by depojones on Fri, 06 May 2022 10:15:12 +0300