Database operation through SpringBoot + JdbcTemplate
1. Overview of jdbctemplage
JdbcTemplage is located at org springframework. jdbc. Under the core package, the most basic JDBC operations are encapsulated, which simplifies the operation process of JDBC.
2. How to use it?
Start with the code and understand how to use it according to the code: (1) Register BaseJdbc first
package com.dechnic.c ...
Posted by andremta on Sat, 25 Dec 2021 19:44:36 +0100
User must be authenticated with Spring Security before authorization can be completed
Problem description
When using Spring cloud oauth2 to implement Oauth 2 permission control, call / oauth/authorize to obtain the authorization code, and throw the User must be authenticated with Spring Security before authorization can be completed exception?
Request interface:
The console exception information is:
The source code of t ...
Posted by duk on Sat, 25 Dec 2021 17:13:16 +0100
[Java from 0 to architect] staggered logging system and SpringBoot integrated logging framework
Java from 0 to architect Directory: [Java from 0 to architect] learning record
Gitee Code: https://gitee.com/szluyu99/mj_java_frame/tree/master/04_SpringBoot
In the actual development process, the log systems used in different libraries (projects) are not necessarily the same
When multiple projects with a logging system are mixed ...
Posted by fallenangel1983 on Sat, 25 Dec 2021 15:22:24 +0100
Springboot Starter Training 5 Thymeleaf MVC Project Setup
When we develop the spring boot web project, we need to use JSP for view layer functionality. At this time, we will find a problem. This JSP page is very original and cannot use complex tags. We need to write business code in the most original java+jsp mixed-up way. It is inconvenient to use, and for convenience we need to import third-party ta ...
Posted by jackohara on Sat, 25 Dec 2021 04:16:18 +0100
ElasticSearch learning notes
Basic concepts
Index (index)
Saving a piece of data to elastic search is called indexing a piece of data
Type
In Index, you can define one or more types, which are similar to tables in MySQL. Each type of data is put together.
Document
A piece of data (Document) saved in a certain type under an index. In ES, each data is called a Document ...
Posted by onlinegs on Fri, 24 Dec 2021 19:13:22 +0100
Automatic configuration principle of spring boot 2
Today, I learned the automatic configuration principle of springboot 2 and thought it was very clever, so I recorded my learning experience.
1. Preliminary knowledge
Before introducing the automatic assembly principle of springboot 2, there are several annotations that we need to understand. In my opinion, these annotations are the basis of ...
Posted by davissj on Fri, 24 Dec 2021 19:09:24 +0100
Introduction to Spring Boot Actuator
Recently, I was watching the Spring Cloud micro service practical war. Since the introduction to the activator monitoring endpoint has been outdated in the past few years, this article is updated.
Spring Boot version: 2.5 three
First meet actor
It is very simple to introduce this module into the existing Spring Boot application, jus ...
Posted by warriors2003 on Fri, 24 Dec 2021 14:32:32 +0100
File upload and download case based on SpringBoot and Mybatis
File upload and download case based on SpringBoot and Mybatis
This case is based on the actual combat of the [bad programmer] enterprise file upload and download project based on SpringBoot and Mybatis. BiliBili link: https://www.bilibili.com/video/BV1764y1u7gn?p=1
Effect achieved
1. Users need to log in first. We use shiro authentication to ...
Posted by crazytigger on Fri, 24 Dec 2021 10:37:32 +0100
Great wisdom teaches you to learn Java | Spring Boot. Use custom annotations to record operation logs
preface
No matter what application we develop, there will be a functional requirement - recording operation log. With the recording of operation log, we can not only ensure the completion of the application, but also trace the source through the operation log in case of system crash due to misoperation. It can be said that the function of reco ...
Posted by maxrisc on Fri, 24 Dec 2021 07:12:50 +0100
SpringBoot integrates wechat login
SpringBoot integrates wechat login
1. Preparation
1.1 obtain wechat login certificate
Go to the official website Wechat open platform (qq.com) , complete the following steps:
registerMailbox activationImprove Developer InformationDeveloper qualification certificationCreate web app
1.2 configuration file
In the configuration file appli ...
Posted by misterguru on Thu, 23 Dec 2021 23:53:53 +0100