Maven Basics
Pain point of the original project (process control problem)
Software testing, document generation, packaging and release - it's best to be automated (one click release)The project relies on a large number of third-party jar packages, which is complex and difficult to manage - POM xmljar is a different manufacturer, and there are too many down ...
Added by Smruthi on Fri, 11 Feb 2022 14:44:41 +0200
Chapter 4 of SpringBoot: Handling global exceptions
We talked about handling global exceptions in spring MVC. Of course, spring boot also has global exception handling.
I Custom processing common 404 and 505 pages.
For example, if we enter a path that does not exist in the program, we will jump to the interface that cannot be found in 404.
Input: http://localhost:8080/j/show1
In fact, s ...
Added by Loki_d20 on Fri, 11 Feb 2022 12:58:23 +0200
Learning of spring framework
spring framework
summary:
Spring is a lightweight open source framework for layered Java SE/EE application full stack with IoC (Inverse Of Control: Inversion control) and AOP (Aspect Oriented Programming) provide a presentation layer Spring for the kernel MVC, Spring JDBC in the persistence layer, transaction management in the business layer ...
Added by digibrain on Fri, 11 Feb 2022 12:00:41 +0200
SpringBoot Basics
SpringBoot Foundation
1, Features of Springboot
Parent project dependency
In each springboot project, there is a parent project dependency. After clicking it, you will see a spring boot dependencies. After clicking it, you will see that almost all the dependent version numbers commonly used in development are declared, that is, automatic ve ...
Added by justgrafx on Fri, 11 Feb 2022 10:44:21 +0200
In depth understanding of the use of ApplicationContextAware
When review ing the code of predecessors, I saw a tool class. SpringContextUtil didn't quite understand its usage
@Component
public class SpringContextUtil implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) th ...
Added by SauloA on Fri, 11 Feb 2022 10:28:18 +0200
Obtain openId from Weixin Java MP (Weixin java tools) to realize Spring Boot 2.0 integration from zero for wechat authorization
** Steps:**
1, * intranet penetration application for secondary domain name (those with server and domain name can be omitted)*
2, * apply for wechat public platform test number * (those with * certified * wechat service number can skip)**
3, Build Spring Boot 2.0 project to obtain openId
1, Intranet penetration:
Because it is necessary to ...
Added by Canabalooza on Fri, 11 Feb 2022 05:34:33 +0200
Sentinel study notes
1, Installation
download Sentinel download addressinstall java -jar sentinel-dashboard-1.7.0.jar 3. Visit localhost:8080
2, Disposition
1. Construction project
Introducing maven dependency
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-nacos-discovery< ...
Added by skattabrain on Fri, 11 Feb 2022 03:57:45 +0200
Spring code tips that you can't put down
I happen to have some research on spring source code. Combined with my practical work experience in recent years, I summarize the knowledge points I think are good in spring. I hope it will be helpful to you.
Seek attention Welcome to pay attention to my B station accountStation B account number If the content can help you, you are welcome to ...
Added by RockRunner on Fri, 11 Feb 2022 02:24:16 +0200
spring annotation development
Environment construction
In addition to the xml in the previous document, a context:component constraint should be added
1. xml configuration
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www. ...
Added by svivian on Thu, 10 Feb 2022 21:04:00 +0200
Basic use of Spring framework
1, Foreword
The basic part of the Spring framework is too long. It is divided into several articles to consolidate the learning record.
1. What is Spring
The spring framework was created due to the complexity of software development. Spring uses basic JavaBean s to accomplish things that could only be done by EJB s before. However, the use o ...
Added by Dillinger on Thu, 10 Feb 2022 21:03:58 +0200