SpringBoot implements multiple data source configuration

Spring boot for multi data source configuration springBoot implements the configuration of multiple data sources application.properties Configure two data sources in spring.datasource.primary.url=jdbc:mysql://localhost:3306/test1 spring.datasource.primary.username=root spring.datasource.primary.password=root spring.datasource.primary.driv ...

Posted by AtomicRax on Mon, 20 Jul 2020 18:01:36 +0200

Crawl app photos with python

Download a fighting fish first (you can do it without downloading, the URLs are all here, right) Grab a json package by grabbing it and get the address below   Observed tests show that modifying offset values is equivalent to paging an app Accessing this url returns a large dictionary with two indexes, one error and one data.Data is another 20 ...

Posted by djcubez on Mon, 20 Jul 2020 16:59:48 +0200

Several methods to find the maximum and minimum values in an integer array

In integer arrays, we need to get the maximum and minimum values of array elements from them: Method 1: Sort using Array first, then from the sorted array, the first element is the smallest and the last element is the largest.   public static int FindMaxNumber(params int[] stringValue) { Array.Sort(stringV ...

Posted by gmp on Sun, 19 Jul 2020 16:30:03 +0200

Kids learn Java (6): encapsulation

Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism. This section covers encapsulation. Procedure 1 class Woman { private String name; private int age; private Man husband; public void setName(String name) { this.name = name; } public String getName() { return ...

Posted by Japher on Sun, 19 Jul 2020 17:48:11 +0200

CentOS7 installation configuration mongodb3.2

1. Download Dependent Packages yum -y install wget 2. Create a file directory mkdir -p /app/install mkdir–p /app/data/mongodb mkdir–p /app/log/mongodb 3. Download mongodb cd /app/install wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.16.tgz tar zxvf mongodb-linux-x86_64-3.2.16 ...

Posted by Collin on Mon, 20 Jul 2020 18:21:42 +0200