Integration of spring boot and log4j2

spring-boot-log-log4j2 The project has been synchronized to github at: https://github.com/jiangcaijun/spring-boot-all/tree/master/spring-boot-log-log4j2 Summary: spring-boot Project description Using logj 2 to print and classify logs Related pom dependency <dependency> <!-- exclude fall spring-boot Default log To configure --> ...

Posted on Fri, 03 Apr 2020 18:20:46 -0700 by gardnc

Using bat to call the executable jar file

1, Project requirements 1.maven project 2. There is a properties configuration file. 3. There are internal jar packages 2, The simple thing is to implement an example 1. Placement of project documents   Note: if it is a web project, we will use the jar file as the path in our project WEB-INF/lib.   2.main method code package com.my.tools.run ...

Posted on Wed, 01 Apr 2020 16:44:01 -0700 by senatedc

One to many in MyBatis

One to many understanding: A teacher has more than one student If for teachers, it is a one to many phenomenon, that is, from a teacher to have a group of students (set)! Database for reference Many to one. Example: The following example is built in the spring boot environment. There are two ...

Posted on Sat, 07 Mar 2020 22:00:26 -0800 by unidox

Spring Boot basic knowledge learning

This paper mainly introduces the very simple knowledge of spring boot, not in-depth understanding, only touching the surface, but also describing some more complex content. If there are any mistakes in the article, please let me know. Thank you~ In the last article Spring Boot basic knowledge learning ( ...

Posted on Sat, 07 Mar 2020 03:49:03 -0800 by elgordo1960

Getting started with spring: organizing key points aop

1: aop: Aspect Oriented Programming aop terminology: Joinpoint join point: method of original object Pointcut pointcuts: enhanced methods in agents Advice notification enhancements: enhanced code Target target object: represented object, original object Waiting weaving: the process of applying ...

Posted on Fri, 06 Mar 2020 20:42:17 -0800 by may

Eliminate if-else nesting completely

1. Background 1.1 Back Textbook I don't know if you've ever encountered an if-else nesting like a pyramid lying across it: if (true) { if (true) { if (true) { if (true) { if (true) { if (true) { } } } } ...

Posted on Mon, 02 Mar 2020 08:53:24 -0800 by broheem

java learning phase 5 (SpringIoC and DI annotation Development)

1.Spring configuration data source 1.1 role of data source (connection pool) Data sources (connection pools) are used to improve program performance Instantiate the data source in advance and initialize some connection resources Get from data source when using connection resources Return the connect ...

Posted on Sun, 01 Mar 2020 03:49:41 -0800 by justin15

Spring black horse: Spring IOC case (JDBC database): spring new annotation (delete bean.xml file) + Junit integration

Article directory 1. JDBC config.properties configuration 2. List the main codes (those not listed will follow the previous codes) 3. New spring notes 4. spring and Junit integration 1. JDBC config.properties configuration jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306 ...

Posted on Wed, 19 Feb 2020 06:19:40 -0800 by Amitk

Project architecture level specification framework Archunit research

background Recently, when we are doing a new project, we have introduced an architecture requirement, that is, we need to check the coding specification, module classification specification, class dependency specification, etc. of the project, just in touch, just for a survey. Many times, we will f ...

Posted on Wed, 12 Feb 2020 01:25:32 -0800 by kokomo310

Activiti6.0 learning practice core API: repository service storage service

Through the previous study, we learned that activiti obtained the ProcessEnigneConfiguration object through activiti.cfg.xml, which is responsible for managing the configuration related information of the process engine. Through this configuration management object, we can create the ProcessEnigne pr ...

Posted on Wed, 05 Feb 2020 03:24:25 -0800 by nocniagenti