Log printout in eclipse environment

1. First configure the jdk Choose Preferences---- Find the location of your own jdk 2. Configure Tomcat window-----preferences------- Find your own tomcat location 3. Right click the project, build path -------- > configure build path   4. Import log4j-1.2.14.jar Right click log4j-1.2.14.jar file build path ----- > add to build p ...

Added by hadeosdin on Sat, 02 May 2020 12:22:02 +0300

Use of log4j

1. Simple use Only one jar package of log4j needs to be imported, and the log4j.properties configuration file under the src directory will be loaded by default 1. Print log to console log4j.properties configuration file content #Set the log level to info and output to the console log4j.rootLogger=info,console log4j.appender.console = org ...

Added by jay_bo on Mon, 20 Apr 2020 18:53:38 +0300

ocr learning part 2: java realizes image and text recognition through the interface provided by Baidu AI

Let's talk about it briefly: the first time I contacted the platform provided by Baidu AI, I looked at it briefly, liked it very much, and provided many practical functions. What we use here is the function of character recognition. Its usage is very simple, and it can be realized by basic http call, ...

Added by nimzie on Fri, 14 Feb 2020 12:27:29 +0200

[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