原创 volatile in Java

volatile variables are stored in main memory, and never optimized away (for instance, storing in the CPU cache). Once t

原创 Debugging Intellij IDEA

1, Help > Show Log in Explorer. 2, Right Click > Mark Directory As > Source Root.  

原创 Oracle Pagination

1, order by is logical order, while rownum is based on the physical position; in a temporary table generated by a subqu

原创 DataGrip

1, show all schemas of a database connection: Click on the icon to the right of the database connection name, and then

原创 SCP

Copy file from a remote host to local host SCP example: $ scp username@from_host:file.txt /local/directory/ Copy file

原创 Chrome

1, you should disable network when installing Chrome, NetEase Cloud Music, for they will auto-update. 2, if you need Xu

原创 LocalDate

package com.google.adventure.pojo.year2019.girlProject; import java.time.*; import java.time.format.DateTimeFormatter

原创 Common Pitfalls

1, bind the click event twice to the submit button 2, curcuit breakers are not in use when automatic retries are in pla

原创 MyBatis

1, @Insert @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")  

原创 JDBC Template

1, package tacos.data; import java.sql.Timestamp; import java.sql.Types; import java.util.Arrays; import java.util.Da

原创 MySQL and Spring Boot Integration

1, download MySQL https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.17.0.msi 2, install My

原创 MySQL

1, Ctrl + Shift + Esc to open the window in which we can find all the services. Type "mysql", you should find "MySQL80"

原创 react-bootstrap

1, install the dependency npm install react-bootstrap bootstrap 2, use the following site to help you code react-boots

原创 Java Regular Expression

1, Pattern p = Pattern.compile("<.*?>(.*)</.*?>", Pattern.CASE_INSENSITIVE | Pattern.DOTALL); Matcher matcher = p.

原创 Generate QR Code Using JS

1, in html <script src="../../../../js/activity/2019/businessInvite/qrcode.min.js?v=20190606"></script> 2, in js