JDBC programming - get Connection and common problems

Connect to Oracle using JDBC Implementation ideas: Use a file named oracle.properties, which contains the Oracle URL, User, Password and driver classes. Through the input stream of ClassLoader, the input stream contains the Oracle connection initialization parameters of the input program. The input stream is loaded in the Properties load. Get t ...

Posted by dotbob on Fri, 15 Nov 2019 05:17:58 -0800

Get the list of days in the current month

To realize this function, please refer to the following articles< T-SQL get February days>https://www.cnblogs.com/insus/archive/2011/04/22/2025019.html <How to get the days of a month>https://www.cnblogs.com/insus/archive/2011/09/10/2173028.html <Gets the first day of the month in which the specified date is located>https:// ...

Posted by Tomatron on Thu, 14 Nov 2019 10:19:41 -0800

Enterprise wechat - change from payment to employee

This content is based on the independent "enterprise wechat"; Enterprise wechat has an independent management background, which is different from the general service number and subscription number background; Enterprise wechat involves employees, so the payment here is from payment to employee change; Official API documentation: ...

Posted by quiksilver on Thu, 14 Nov 2019 09:04:34 -0800

The method of modifying the length of article title by Zhimeng dedecms

The length of the default dedecms article title is 60 characters, but now the 20 Chinese characters of the article title are far from enough to meet the needs, so what we have to do is to modify the default word limit of the system. The method is as follows:1. Modify the "system - > basic system parameters - > other options - > A ...

Posted by sambo80 on Thu, 14 Nov 2019 06:22:02 -0800

mysql 5.7 master slave synchronization gtid

Environment: 1. linux centOS 7 64 bit2. (slave) linux centOS 7 64 bit3. (mysql) it's better to have the same version. It's recommended that the slave database be no higher than the master database. 5.7 is recommended centos 7 silently installs mariadb. For mysql 5.7 installation, please refer to the following link documents:centos 7 installs m ...

Posted by suavebum on Wed, 13 Nov 2019 10:43:46 -0800

Connect MySQL with JDBC

Existing configuration: install IntelliJ (Java IDE) and MySQL. Then use MySQL Installer to install Connector/J. Open Intelli, create a new Project, and create a MySQL demo class. The code is as follows. The code comes from https://www.runoob.com/java/java-mysql-connect.html Some of them need to be changed into the contents ...

Posted by 8ta8ta on Wed, 13 Nov 2019 09:49:11 -0800

Because of lack of sitin's bypass

Because of lack of sitin's bypass Open the source code and find a prompt, which is code audit. <?php error_reporting(0); if (!isset($_POST['uname']) || !isset($_POST['pwd'])) { echo '<form action="" method="post">'."<br/>"; echo '<input name="uname" type="text"/>'."<br/>"; echo '<input name="p ...

Posted by Vebut on Wed, 13 Nov 2019 08:28:13 -0800

k8s grafana data persistence

Problem: as soon as the kfana container built by k8s is restarted, the configured dashboard and added users will be reset. As a result, there is no data persistence in grafana.Solve: 1. Establish persistent flower storage pvc in the cluster first Then hang it in the container / var directory volumeMounts: - mountPath: /var name: ...

Posted by Mystis on Wed, 13 Nov 2019 07:08:25 -0800

[daily] gocron source reading - use go mod to manage and start gocron depending on source code

Starting from Go1.11, golang officially supports the new dependency management tool, go modgo mod download: download the dependent module s to the local cachego mod edit: edit go.modgo mod graph: print module dependency graphgo mod init: initialize go.mod in the current directory (that is, a new go.mod file will be created)Go module tidy: reorg ...

Posted by dineshthakur on Wed, 13 Nov 2019 06:44:41 -0800

Mybatis focuses on environment configuration and architecture

This article has been exclusively authorized to be used by [Xinhua front and back development]. Use other platforms after contacting the author [TOC] brief introduction JDBC, Hibernate and Mybatis are the most commonly used databases. By connecting to the database through JDBC, we will find that the workload is quite complex. We have to deal wi ...

Posted by luisluis on Tue, 12 Nov 2019 19:39:22 -0800