Spring-1 - important concepts

1, IOC and DI IOC (reverse control): the creation of objects is handed over to spring for configuration. DI (dependency injection): sets values to properties in a class.Relationship between IOC and DI: DI cannot exist alone and needs to be completed on the basis of IOC. 2, Scope of Bean Singleto ...

Posted by Willburt on Sat, 18 Jan 2020 00:04:01 -0800

Sharding sphere version 4.0.0-rc1 is divided into annual tables (later optimization)

1. Sharding sphere version 4.0.0-rc1 is divided into annual tables (to be optimized later) 1.1. overview As for the tables of LogShardingAlgorithm in the previous article, I used to initialize them when I called for the first time. Although this can realize the function, I would use this if judgment every time I called. Although the performance ...

Posted by nubby on Fri, 17 Jan 2020 22:01:28 -0800

SpringBoot - web Development

4, Web development 1, introduction Use SpringBoot; 1) . create a spring boot application and select the modules we need; 2) Spring boot has configured these scenarios by default. You only need to specify a few configurations in the configuration file to run them 3) . write your own business code; Pr ...

Posted by googlit on Fri, 17 Jan 2020 21:21:44 -0800

WeChat public number development menu processing

I. Preface WeChat public number development (1) WeChat access certification as developer WeChat public number development (2) message processing This article will implement Get access_token according to AppID and AppSecret Custom menu (create menu, query menu, delete menu) Some tips in wechat documents: access_token must be stored with at ...

Posted by big_c147 on Fri, 17 Jan 2020 05:22:26 -0800

spring data jpa many to many relationship reports a missed entity passed to persist error

Recently, when spring data jpa is used to maintain many to many relationships between tables, a strange problem arises. When a new object is put into the entity class to maintain many to many relationship set, and then saved with jpa, the following exception will appear. org.springframework.dao.InvalidDataAccessApiUsageException: detached enti ...

Posted by Shadow Wolf on Fri, 17 Jan 2020 00:58:31 -0800

Java design pattern 2: observer pattern

Observer mode Definition One to many dependencies between objects are established, so that when the state of an object changes, all its dependents will be notified and updated automatically. In observer mode, when the state of the observed object changes, all observers will be notified. There are ...

Posted by Ellen67 on Thu, 16 Jan 2020 20:58:22 -0800

Java uses selenium to crawl the source code of web page and send it by email

1. Project construction: idea + gradle + springboot   build.gradle: introduce selenium related dependency apply plugin: 'java' apply plugin: 'maven' apply plugin: 'idea' apply plugin: 'org.springframework.boot' sourceCompatibility = 1.8 group = 'com.boom.basement' def version = '1.0.0.RELEASE' de ...

Posted by John_wilson on Thu, 16 Jan 2020 10:09:47 -0800

Feign call error: failed and no fallback available

timed-out and no fallback This error basically occurs in the Hystrix fuse. The function of the fuse is to determine whether the service can be connected. If it is connected, it doesn't matter. If the call exceeds the time limit within the specified time, it will return an error through the fuse. Generally, you can set one of the following confi ...

Posted by Simbachips on Thu, 16 Jan 2020 07:41:32 -0800

Spring boot, spring security, Vue integrated JWT certification

Original address Summary Before starting this article, the blogger defaults that you already know Spring Boot, Spring Security, Vue and JWT. The above concepts will not be repeated here. Let's talk about the train of thought. 1. The backend needs to write JWT generation processing and JWT parsing authentication processing. 2. The front ...

Posted by NTM on Wed, 15 Jan 2020 21:50:45 -0800

Spring Boot configuration unified format Result return value

In web development, the separation of front and back development has been deeply rooted in the hearts of the people. Such a development mode is very useful for the development of elegant and beautiful web applications. I have consulted some materials on the Internet and learned to use the unified format ...

Posted by bobbybrown on Wed, 15 Jan 2020 19:52:49 -0800