Java in-depth learning: locks

Re-lockable: Simply put, repetitive locking is supported and reusable Features: Locks can be passed, methods can be passed recursively Objective: To avoid deadlock phenomenon. Code: public class Test implements Runnable { @Override public void run() { method1(); } public synchronized void method1() { ...

Posted by sentient0169 on Sat, 12 Oct 2019 02:54:36 -0700

ODI Consistency CDC (Last Update Date) Synchronized Data Operation Details

ODI operation details Consistent CDC (Last Update Date) Synchronized Data Add CDC 1. Check the database version DECLARE -- Validating KM options dbVersion1 NUMBER(2,0); dbVersion2 NUMBER(2,0); BEGIN -- Verify RDBMS version select case when upper(name) = 'COMPATIBLE' then to_number(substr(value, 1, instr(value, ...

Posted by sudhakararaog on Fri, 11 Oct 2019 19:05:52 -0700

MySQL does not open slave how to complete remote replication

1. Loading data in batches through remote binlog New business needs, online database data pulled to this time, but slave service is not allowed to open, database account of direct external network is not established, and the network of database external network can not be connected, so our test enviro ...

Posted by hwmetzger on Fri, 11 Oct 2019 08:05:50 -0700

Springboot 2.0.3 Configuration Log

Reason: SpringBoot uses slf4j log by default. When introducing other frameworks, it only needs to exclude the log framework that the framework depends on. When I wanted to introduce log4j today, the pom file kept reporting errors, indicating that the jar package of log4j could not be found, which should be the reason for the springboot version ...

Posted by Markx on Thu, 10 Oct 2019 07:18:23 -0700

Java Self-Learning - Date

Java Date Class Date class Note: It's java.util.Date; Instead of java.sql.Date, this class is used for database access Example 1: The concept of time origin All data types, whether integer, Boolean, floating point or string, need to be represented in the form of numbers. Date types are no exception, in other words, a date, such as October 1, 20 ...

Posted by cauri on Thu, 10 Oct 2019 01:51:52 -0700

Oracle 32k Field Extension Usage Test

Oracle 32k Field Extension Usage Test More than 12C can be extended with 32k Here's a set of tests to create a table in the 18c environment, using the 32k field varchar2 SQL> create table tab32k (name varchar2(32768)); create table tab32k (name varchar2(32768)) * ...

Posted by chrislive on Wed, 09 Oct 2019 21:13:10 -0700

When JPA meets four styles of MySQL table names: full capitalization + full lowercase + hump + Hungary

I have always known that MySQL has the case problem of field names, table names, etc. on Linux, so in order to avoid this problem, I chose underscores and all lowercase, saying that although we use JPA, as long as we use annotations to write clearly that table names and field names are uppercase, that's all right. For example It turns out tha ...

Posted by mananx on Wed, 09 Oct 2019 20:34:27 -0700

Two Methods of Getting Random Date Objects (java.sql.Date) with Specified Range in Java

Links to the original text: https://blog.csdn.net/WuLex Or because filling in self-built data tables requires a range of random dates, with the goal of being elegant, concise and efficient. There are two ideas: Generate a required 13-bit ra ...

Posted by bjblackmore on Wed, 09 Oct 2019 18:45:31 -0700

sql server database pushes data to java interface

Because I have never used the database to push data to the java interface before, in order to achieve this demo, I step by step step stepping on the pit!!! The function and application scenario of this article: using database to push data actively, realizing real-time updating of front-end page dat ...

Posted by misterm on Wed, 09 Oct 2019 18:25:05 -0700

Spring Cloud Tutorial | Part 2: Building a Configuration Center

1. Building config configuration center 1.1 Building springboot Template Project ignore Project structure: 1.2 Modify pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema ...

Posted by jbradley04 on Wed, 09 Oct 2019 17:30:54 -0700