Basic Implementation of Spring 5 Comparing Spring 3.2 Source Container

Recently I read Spring Source Deep Parsing, which is based on Spring 3.2. The basic implementation of Chapter 2 container has changed a lot. Implementation of Spring 3.2: public void testSimpleLoad(){     BeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("spring/application-context.xml"));     UserService userService = ...

Posted on Fri, 01 Feb 2019 10:21:16 -0800 by anth0ny

SpringBoot series uses custom annotations to verify user login

I remember when I first started my interview at the beginning of this year, what I was asked most was that you knew the two core points of Spring? So what do you mean by AOP and IOC? I believe you may have been asked many times. 1. What is AOP? The so-called AOP is face-to-face programming, which enables us to expand new functions crosswise w ...

Posted on Fri, 01 Feb 2019 01:21:15 -0800 by kenshejoe

Use Spring Boot+MyBatis Framework for Query Operations

1. Create Module under the project you created, select Spring initializer to create. 2. Choose at Type: Maven Project (Project Building Tool)   Third, when creating dependencies, tick web, mybatis, MySQL (depending on your personal needs, you can choose)   The project structure is as follows:     Note: application.properties and application.y ...

Posted on Thu, 31 Jan 2019 20:18:15 -0800 by Rhysickle

(1) spring-boot Foundation Environment Construction

1. Construction of Development Environment JDK version: Oracle JDK 1.8+ Build tools: Apache Maven 3.3.0+ (bin.zip) Development tools: IntelliJ IDEA 2017.2.6 2. Creating spring-boot Project Create a new project with idea: File - > New - > Project New project. png Fill in the basic information of the project: ...

Posted on Wed, 30 Jan 2019 10:24:14 -0800 by Havery Jay

springboot Integrated kaptcha Verification Code Demo

CAPTCHA is "Completely Automated Public Turing test to tell Computers and Humans Apart" (fully automatic differentiation) Computer And human Turing test The abbreviation is a public automation that distinguishes users from computers or people. program . Can prevent: malicious decryption of codes, Brush ticket Forum irrigation, effect ...

Posted on Wed, 30 Jan 2019 02:12:16 -0800 by ElectricRain

Springboot 2.0.4 calls qq mailbox to send mail

Introductory remarks: If you remember correctly, developing a mailbox function with different frameworks will encounter more or less problems, and this time can not be exceptional, otherwise it will be meaningless. Today, with Springboot 2.0.4 to develop the email function, we encountered three pits The dependency was added to ...

Posted on Mon, 28 Jan 2019 19:15:13 -0800 by JasonO

SpringBoot (IV) MyBatis generator annotations and xml

MyBatis Is an excellent persistence framework that supports customization SQL,Stored procedures and advanced mappings. MyBatis Avoid almost all of them. JDBC Code and manually set parameters and get the result set. MyBatis You can use simple XML Or annotations to configure and map native information, interface and Java Of POJOs(Plain Ordina ...

Posted on Mon, 28 Jan 2019 14:36:14 -0800 by novice@work

Introduction to Service Bean of dubbo Series (6)

Preface In previous articles, we learned how spring parses @Service, @Reference annotations. Today, we focus on a very important class of service exposurers, Service Bean, which generates a Service Bean for each exposed service. ServiceBean The inheritance implementations of this class are as follows public class ServiceBean& ...

Posted on Mon, 28 Jan 2019 03:03:14 -0800 by richmlpdx

5.9j (java Learning Notes) Strong and Weak HashMap, Identity HashMap, EnumMap

I. Citation Classification Strong: After running the garbage collection mechanism, it does not recycle, and the program does not recover memory overflow. Soft: When the garbage collection mechanism runs, it judges whether the memory is full or not. If the memory is full, it will be recycled, and if the memory is sufficient, it will not be rec ...

Posted on Sun, 27 Jan 2019 20:00:15 -0800 by Seas.Comander

Arthas Practice - Investigate Spring Boot Application NoSuchMethod Error

Preface Sometimes spring boot applications encounter problems with java.lang.NoSuchMethodError. Here's a specific demo to illustrate how to use it arthas Check it out. Demo: https://github.com/hengyunabc/spring-boot-inside/tree/master/demo-NoSuchMethodError catch holds exceptions in the main function of the application to ensure that the proces ...

Posted on Sun, 27 Jan 2019 14:12:14 -0800 by sheridan