Getting started with spring boot and yaml configuration

Getting started with SpringBoot Create a SpringBoot project: file new project, click Spring Initializr on the left in the figure, and then just fill in the project name and other information. After creation, a startup class of SpringBoot project will be automatically produced: @SpringBootApplication public class SpringbootDemo01Application ...

Added by wacook on Sun, 20 Feb 2022 18:30:50 +0200

Mybatis foundation + addition, deletion, modification and query (code example)

First, what is MyBatis? MyBatis is a state-of-the-art persistence framework that supports custom SQL, stored procedures, and advanced mapping. MyBatis eliminates almost all JDBC code and manually setting parameters and retrieving results. MyBatis can use simple XML or Annotations to configure and map primitives, mapping interfaces, and Java PO ...

Added by hesketh on Sun, 20 Feb 2022 14:15:42 +0200

Object oriented annotation method class object encapsulation inheritance rewriting polymorphic interface

Process oriented & object oriented Process oriented The steps are simple and clear. What to do in the first step and what to do in the second part... Facing the process is suitable for dealing with some simple problems Linear problem object-oriented Birds of a feather flock together, the thinking mode of classification. When think ...

Added by gordong1968 on Sun, 20 Feb 2022 08:12:51 +0200

ThreadContext and ThreadLocal of shiro

problem Today, I looked at the previous project written with shiro framework and looked at the source code carefully. Suddenly, I was curious. We usually use securityutils getSubject(); Method to obtain the of the current user. This class is a self-contained class under shiro, that is, shiro has encapsulated the logged in object to the i ...

Added by robtbs on Sat, 19 Feb 2022 20:02:46 +0200

Simple interface implementation

Simple interface implementation Basic knowledge understanding package In the previous study, we simply mastered the function relationship between classes and objects, and between classes. For the sorting of different code files, we put forward the concept of package, which can be understood as a folder to classify code files and facilitate fu ...

Added by landavia on Sat, 19 Feb 2022 12:57:26 +0200

Several postures of Idea+Maven playing jar package

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it target Our local projects should be released through Jar package or used by others. Today, I recorded the packaging process of the project completed by le idea and maven. Using Idea+Ma ...

Added by tinyang on Mon, 14 Feb 2022 17:15:47 +0200

File template variable

The content of the article is reproduced from the official help document of IDEA: File template variables | IntelliJ IDEA Translated by Google Predefined template variables The following predefined variables are available for file templates: volatile describe ${DATE} Current system date ${DAY} Current date of each month ${DIR_PAT ...

Added by poppy on Mon, 14 Feb 2022 11:23:08 +0200

Mybatis learning notes summary

1. Dynamic SQL 1.1 what is dynamic SQL? What is dynamic SQL? Dynamic SQL refers to generating different SQL statements according to different conditions. Usually, we operate some different SQL statements, which are directly changed in the code, which is very troublesome. It is very convenient to use dynamic SQL of Mybatis. Using t ...

Added by darkwolf on Sun, 13 Feb 2022 09:29:44 +0200

SSMP integration case: addition, deletion, search and modification based on book information

Integration case based on SSMP I Implementation case scheme analysis Case making process Basic CRUD function Call the page and make all functions after confirming asynchronous submission Add paging function and query function II Create backend project environment 2.1 creating modules Create module First, add web - "Spring Web" ...

Added by stevepatd on Sat, 12 Feb 2022 10:34:41 +0200

Deep understanding of JVM -- memory structure

Deep understanding of JVM (2) -- memory structure (2) 4. Pile definition Objects created with the new keyword are placed in heap memory characteristic The safety of all threads in the heap needs to be consideredThere is a garbage collection mechanism Heap memory overflow java.lang.OutofMemoryError : java heap space. Heap memory over ...

Added by Haberdasher on Fri, 11 Feb 2022 19:20:54 +0200