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

Document deletion for the SpringBoot series tutorial Solr

Document deletion for Solr, 200114-SpringBoot series tutorial The previous Search tutorial did not continue at the beginning, and now it is picked up again, at least to complete the basic operation posture of CURD; this article focuses on how to delete data <!-- more --> I. Configuration Before introducing demo, you need to install sol ...

Posted by rougue on Wed, 15 Jan 2020 18:09:21 -0800

Example of using redis in spring boot

1. Start by creating a spring boot project. See the following links for a way to create a spring boot project:  https://blog.csdn.net/liutong123987/article/details/79385513 2. Add the following configuration to the pom.xml file that you just created the project <dependency> <groupId>org.springframework.boot ...

Posted by splitinfo on Wed, 15 Jan 2020 08:07:13 -0800

How do beanautils copy lists?

Background We may often transform data between DO, Model, VO layer data: Entity corresponds to the data structure of persistence layer (generally the mapping model of database table); The Model corresponds to the data structure of the business layer; VO is the data structure that the Controller interacts with the client. For example ...

Posted by smook on Wed, 15 Jan 2020 00:22:10 -0800