SpringBoot integrated Log4j

(1) Add dependency in pom.xml <!--Remove springboot Default log--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.spri ...

Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc

Spring annotation version -- automatic scanning and filtering rules

During the development of spring annotation version, we usually establish a Configuration class of our own. The so-called Configuration class is to add @ Configuration annotation on the class. If the default filter rule is used, mark @ Controller,@Service,@Repository,@Component on the class, The Spring ...

Posted on Sun, 09 Feb 2020 02:31:33 -0800 by redmonkey

Redis Actual-Data Structure Set Actual Filter User Registration Duplicate Submission Information

Overview: This series of blogs covers relevant content from a hands-on course recorded by debug: Getting Started with Cache Middleware Redis Technology and Application Scenario Actual Warfare (SpringBoot2.x +Redback System Design and Warfare) , interested little buddies can click to learn on their own (after all, it's faster to master technolo ...

Posted on Sat, 08 Feb 2020 08:25:02 -0800 by qing

Two database connection modes and two annotations (annotation version usermapper, file version)

1, Two ways to connect database Method 1: springboot is configured by default (DataSource and sqlsessionfactory) Direct configuration file application.yml Write inside spring: datasource: url: jdbc:mysql://127.0.0.1:3306/o2odb?serverTimezone=UTC&characterEncoding=utf-8&useSSL=true ...

Posted on Sat, 08 Feb 2020 06:42:52 -0800 by haku87

SpringBoot integrates MyBatis and transaction management

Integrated MyBatis (1) Add dependency in pom.xml <!-- mybatis It depends on the start of. Contains mybatis,mybatis-spring,spring-jdbc(The coordinates used by the transaction) --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter& ...

Posted on Sat, 08 Feb 2020 06:05:59 -0800 by juschillinnow

Java JavaScript advanced bootstrap

Content today 1. Bootstrap Bootstrap: 1. Concept: a front-end development framework, bootstrap, from Twitter, is currently a very popular front-end framework. Bootstrap is based on HTML, CSS and JavaScript. It is simple and flexible, making Web development faster. *Framework: a semi-finished softw ...

Posted on Sat, 08 Feb 2020 00:38:23 -0800 by alexrait1

Xuecheng Online - day 15 - handout - media management system integration IV

3. Online learning interface3.1 demand analysisAccording to the business process below, this chapter completes the front-end learning page to request the learning service to obtain the course video address, and automatically plays the video. 3.2 build development environment3.2.1 create databaseCreat ...

Posted on Fri, 07 Feb 2020 07:37:38 -0800 by if

Common methods of JdbcTemplate

JdbcTemplate is the core class of Spring JDBC and provides a method to easily add, delete, and inspect data.Several common methods of this class are described in an example below. This blog use case: 1. Create a Java or web project to import the jar packages for spring, the jar packages for database c ...

Posted on Thu, 06 Feb 2020 21:35:44 -0800 by ruraldev

Array of leetcode brushing titles (constant space for numbers, maximum dictionary order, delete targets, delete duplicates)

Off-topic topic: The year of the heptagon in 2020 was a bad start, with all parts of the world being harmed by nature.This winter holiday epidemic in Wuhan is painful, and Kobe has also suffered misfortunes.In any case, I hope we can get through this difficult time. In the spring blossom season, I wish ...

Posted on Thu, 06 Feb 2020 19:09:53 -0800 by Zepo.

Spring Boot2.X requests logs using the AOP print interface

Spring Boot requests logs using the AOP print interface The two main features of Spring, IOC (Automatic Injection) and AOP (Face Oriented), are the special features of AOP Face Oriented. When users access the system, they print the corresponding request logs according to the control layer methods they ...

Posted on Wed, 05 Feb 2020 18:47:00 -0800 by ddrummond