[Enjoy Feign]4. Detailed core API for native Feign: SynchronousMethodHandler, Contract...
Interview questions, written exams, the points of knowledge to be used in the work if you do not know them, then the interview is usually here, you can call the Engineer for the API yourself.
->Return to Column Directory <-
Code download address: https://github.com/f641385712/feign-learning
Cat ...
Added by calevans on Wed, 12 Feb 2020 05:09:59 +0200
Very simple addition, deletion, modification and query of elastic search
Steps are as follows
1 Maven for jar package management
pom file
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency ...
Added by ocd on Mon, 13 Jan 2020 13:26:54 +0200
Caching of MyBatis query results
The caching of mybatis refers to caching query results. When using the same sql statement and passing in the same parameters to query in the future, the query results can be obtained directly from the local caching of mybatis without querying the database.
mybatis's cache includes the first level cache and the second level cache. The first leve ...
Added by grandeclectus on Sun, 12 Jan 2020 13:53:13 +0200
Setup of sping MVC timer task
Timed tasks are used in the project. Write a note to record with your notes.
First add the beans tag to the Spring configuration file ApplicationContext.xml file
xmlns:task="http://www.springframework.org/schema/task"
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-4.1.xsd
Currently, there ar ...
Added by reddevil on Mon, 06 Jan 2020 18:25:06 +0200
JAVA implementation of the third-party website wechat code scanning login Demo
Using JAVA Servlet to realize the Demo of the third-party website wechat code scanning login, it's really hard to do this, it's not easy to achieve, but it's still done. Here, paste the code to avoid the detour of friends who do wechat login development
package com.wxlogin.common;
import java.net.URLEncoder;
public class Co ...
Added by LAEinc. Creations on Tue, 31 Dec 2019 19:30:21 +0200
The way of springboot for beginners, integrating log4j2 logs
0. Preface
Log recording is essential to the system. The commonly used log components in spring boot include log4j, logback and log4j2. Logback is the default of spring boot and has been brought by itself. You can choose log4j2, and others don't need to pay attention;
1, Integrated log4j2 log component
1. Remove the default logback log frame ...
Added by PerfecTiion on Thu, 19 Dec 2019 20:47:41 +0200
Build Mybatis framework for idea maven project
Preparatory work:
1. Create a database
2. Create a new user table. The table fields include id, username, birthday, sex and address
3. Download and unzip the maven installation package
New maven project:
1,File-new-Project
2. Select maven and click next
3. GroupId generally fills in the company domain name and writes it backward ...
Added by jawinn on Mon, 09 Dec 2019 23:48:54 +0200
log4j2 hierarchical output log
In the development process of java mvc framework, we often divide the code into levels like controller (control layer), service (business layer), rpc (remote interface call layer), dao (data layer). If we print all the logs of all levels into one file, one is that the single log file is too large, and it is not convenient to view, so we conside ...
Added by curt3006 on Sun, 08 Dec 2019 01:48:22 +0200
Spring framework learning - build the first spring project
Step 1: download the Spring development package.
Official website: https://spring.io/ Download address: https://repo.spring.io/libs-release-local/org/springframework/spring/
spring-framework-3.0.2.RELEASE-dependencies and spring-framework-4.2.4.RELEASE-dist extract the second one, and extract the directory:
Step 2: build a project ...
Added by phppaper on Mon, 18 Nov 2019 21:30:50 +0200
Failed to bind properties under 'spring.datasource' to javax.sql.DataSource
After checking on the Internet, I didn't find a solution to the problem, so after solving the problem, I sorted it out on the Internet to help my friends in need.
When spring boot integrates Druid, it introduces the data source of druid and configures the relevant configuration in the configuration file application.yml
in ...
Added by hexguy on Thu, 07 Nov 2019 22:24:16 +0200