SpringBoot tutorial | SpringBoot integration JdbcTemplate

1. Overview of jdbctemplate After the previous articles, we have almost finished explaining some operations of the front-end controller in SpringBoot, and experienced the convenience that SpringBoot brings us to use the framework. In all the cases in the previous article, only one web starter is introduced, and there are few configurations. St ...

Added by drizzle on Wed, 26 Jan 2022 14:48:13 +0200

Configuration-based User Name Password Settings and Scenario Description

spring-security basic configuration username password Scenarios applicable Configure the basic user password instead of checking it dynamically through a database, etc. Generally speaking, it is suitable for simple scenarios, such as adding a base-based authentication to eureka; Infrastructure Project Setup Build a maven project based o ...

Added by busnut on Wed, 26 Jan 2022 09:31:00 +0200

Even some people think that Redis is only as simple as get set?!

Five data types and application scenarios of Redis Redis has five data types, namely, string,list,hash,set,zset(sort set). I think this point should be clear to all partners who have a little knowledge of redis. Next, let's discuss the application scenarios of these five data types. [get notes] string This type is believed to be the most fam ...

Added by kansaschuck on Wed, 26 Jan 2022 07:20:04 +0200

SpringBoot tutorial | SpringBoot integration with Mybatis

In the last article, we introduced the integration of SpringBoot with JdbcTemplate After a brief experience of the usage of the JdbcTemplate framework, today's content is more important. Let's introduce the steps of integrating Mybatis with SpringBoot. 1. Introduction to Mybatis MyBatis was originally an open source project iBATIS of apache. ...

Added by dieselmachine on Wed, 26 Jan 2022 06:55:28 +0200

Spring Boot learning notes - Spring Security

Spring Boot learning Official website: https://spring.io/projects/spring-boot#overview file: https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/ Reference video: [crazy God says Java] the latest tutorial of SpringBoot, IDEA version, is easy to understand_ Beep beep beep_ bilibili Project complete reference code: lexi ...

Added by xinnex on Tue, 25 Jan 2022 23:15:22 +0200

Use of custom annotations in Spring projects

1. Preparation First, a simple springboot project is created here: The contents of each class are as follows: @Data @AllArgsConstructor @NoArgsConstructor public class User { private Integer id; private String name; } @Component public class UserDao { public User findUserById(Integer id) { if(id > 10) { ...

Added by insrtsnhere13 on Tue, 25 Jan 2022 19:57:13 +0200

Principle analysis of embedding Tomcat in SpringBoot

Spring boot embedded Tomcat principle Embedded Tomcat startup principle First, come to the place where the SpringBoot project is started, that is, the configuration class @SpringBootApplication public class InakiApplication { public static void main(String[] args) { SpringApplication.run(InakiApplication.class, args); } } ...

Added by crazy8 on Tue, 25 Jan 2022 12:07:18 +0200

Swagger of Java project reports an error: Java lang.NullPointerException: null

1, Foreword Record the startup error when referring to Swagger configuration in SpringBoot project, which makes Swagger inaccessible, but the project can be started and access the background interface. 2, Error reporting information 1. Background error message: 2022-01-24 13:42:20.638 ERROR 18508 --- [ main] d.s.w.p.DocumentationP ...

Added by jh21236 on Tue, 25 Jan 2022 11:45:45 +0200

Section 4: web template data rendering display in SpringBoot

In the first section, we demonstrate that the data is returned through the interface, and the data is not rendered and displayed on the page. Here we demonstrate a project case where the data returned from the background is rendered to the front pagetemplate engineSpringBoot renders page results through a template engine. The template engines o ...

Added by discostudio on Tue, 25 Jan 2022 06:47:41 +0200

From zero to build a development scaffold, Spring Boot integrates CAT to realize APM, link monitoring and service embedding point

brief introduction Introduction to Cat CAT is a real-time application monitoring platform developed based on Java, which provides a comprehensive real-time monitoring and alarm service for meituan review.As the basic component of the server-side project, CAT provides Java, C / C + +, node JS, python, go and other multilingual clients have ...

Added by Nacota on Tue, 25 Jan 2022 01:27:05 +0200