SpringBoot 2.0 + Mybatis + Mybatis Generator + IDEA Making Multiple Data Sources

SpringBoot 2.0 + Mybatis + Mybatis Generator + Multiple Data Sources + IDEA Make complaints Yesterday, I found a "complete" version of the Internet using SpringBoot 2.0 + Mybatis to achieve multi-data sources. As a result, there is a lack of some code, which is very miserable and wastes too much time. After finding N tutorials, I fina ...

Posted on Tue, 10 Sep 2019 01:58:57 -0700 by jack bro

Introduction and use of Spock test framework

Using groovy to simplify testing in Java projects and spock as a java project testing framework brief introduction Spock framework is a groovy grammar-based testing framework. Because of groovy, it is more flexible to use than junit, and the writing of test cases is more simple and easy to understand at a glance. If you have used junit, spo ...

Posted on Mon, 09 Sep 2019 23:50:53 -0700 by t31os

Bean loading for Spring Ioc: Bean creation for individual scope s

Bean s have many different scopes in Spring, such as singleton, prototype, request, etc. This article will analyze how each scope's beans are created. 1. singleton Code: // Create bean instance. //Create a single Bean if (mbd.isSingleton()) { //An anonymous internal class is used to create Bean instance objects and register them with depen ...

Posted on Mon, 09 Sep 2019 20:26:34 -0700 by rscott7706

BeanFactory and FactoryBean in Spring

1. Summary of premises Many java developers have seen classes suffixed with FactoryBean in Spring frameworks, such as SqlSessionFactoryBean in Mybatis-Spring. Speaking of this, we have to mention BeanFactory. FactoryBean and BeanFactory are particularly confusing, and interviews often ask about these two concepts. In fact, their roles and usage ...

Posted on Mon, 09 Sep 2019 05:53:49 -0700 by jprazen

Sprboot + Nacos multi-environment deployment

Sprboot + Nacos multi-environment deployment Problem Description What nacos is is is not elaborated here. In this blog, the function is as the center of spring boot dynamic configuration. With spring cloud, multi-environment deployment can be eas ...

Posted on Mon, 09 Sep 2019 05:51:19 -0700 by coolispaul

Spring Mobile detects multiple device types

Original Link: https://blog.csdn.net/hellowordapi/article/details/78395295 The spring mobile framework is a small framework for getting device information and jumping to different views. Integration method 1. What is pring Moblie? S ...

Posted on Sun, 08 Sep 2019 19:37:43 -0700 by jordy

Spring security Notes 3/4: Custom Login Page

Custom login page Based on the previous examples, customize the return of authentication. For requests from browsers, redirect the page to a custom login page. For requests from other clients (such as APP), authentication results have been returned in Json form. Implementation steps 1. Copy the source code of the previous example Rename packa ...

Posted on Sun, 08 Sep 2019 07:51:15 -0700 by taya

Spring Data Jpa Initial Case and Query Detailed Analysis (in-depth good text)

 SpringDataJpaSpring Data JPA Let's get rid of the operation of DA0 layer, basically all CRUD s can rely on it to achieve. In practical work projects, Spring Data JPA+ORM (e.g. hibernate) is recommended to complete the operation, which provides great convenience in switching different ORM frameworks, but also makes the operation of database la ...

Posted on Sun, 08 Sep 2019 06:41:52 -0700 by Glyde

A dynamic configurable open source project based on spring boot integrated quartz

Recently, I learned quartz, so I integrated quartz under spring boot to realize configurable, log recording and other functions. It's powerful enough to dynamically specify a method to a class.springquartz This article begins with Orange Silence Blog ...

Posted on Sat, 07 Sep 2019 04:58:21 -0700 by scanreg

Spring Learning Notes 1

1. Introduction to Spring Framework and Official Compressed Packet Directory introduce 1. Major Inventor: Rod Johnson 2. Advocates of wheel theory: 2.1 Wheel Theory: No Repeated Invention of Wheels 2.2 IT Industry: Direct Use of Written Code 3.Spring ...

Posted on Sat, 07 Sep 2019 03:54:22 -0700 by todd-imc