[JAVA] Good code style in Java

Development tools I don’t know how many "old" programmers are still using eclipse. These programmers are either following the old ways, or they don’t know the existence of other good development tools at all.Occasionally, inexplicable exceptions appe...

2022-11-24 | Uncle Cthulhu | 854 views

[SpringBoot] The SpringBoot @Value annotation cannot introduce the correct solution to the value in the configuration file

1. The following code is a tool class of Qiniu Cloud, and some keys of Qiniu Cloud need to be introduced @Component public class QiNiuFileUp { @Value '${qiniu.accessKey}' private String accessKey; @Value '${qiniu.secretKey}' private String secretKey;...

2022-11-24 | Uncle Cthulhu | 190 views

[JAVA] Quartz timing tasks, automatic expiration, automatic shutdown, etc., integrate Springboot

1. pom.xml timed task dependency groupId org.quartz scheduler /groupId artifactId quartz /artifactId version 2.2.1 /version /dependency This dependency must be added, which contains spring support for schedule dependency groupId org.springframework /...

2022-11-24 | Baal uncle | 455 views

[JAVA] logback log

1. pom.xml dependency groupId ch.qos.logback /groupId artifactId logback classic /artifactId version 1.2.3 /version /dependency dependency groupId org.logback extensions /groupId artifactId logback ext spring /artifactId version 0.1.2 /version Idclus...

2022-11-24 | Uncle Cthulhu | 124 views

Springboot interceptor injection failure leads to cross-domain

1. ProcureInterceptor import static com.construn.procure.common.Variable.SECRETPC; import static com.construn.procure.common.Variable.SECRETWAP; import static com.construn.procure.common.Variable.TOKEN; import static org.springframework.web.bind.anno...

2022-11-24 | Uncle Cthulhu | 528 views

Gateway encryption and decryption occasionally HTTP method names must be tokensConnection prematurely closed BEFORE response problem

Background In the previous blog, RSA and AES were used to complete the encryption and decryption of the interface, but in the actual test process, occasionally HTTP method names must be tokens, Connection prematurely closed BEFORE response problems o...

2022-11-24 | Uncle Cthulhu | 842 views

Let’s briefly summarize the daily tasks of a MySQL DBA in a day;

Let’s briefly summarize the daily tasks of a MySQL DBA in a day; Accept answer 1: System deployment, resource allocation and recovery, daily monitoring, active-standby switchover, increase or decrease of standby database, instance and data migration,...

2022-11-24 | Yue Cailei | 412 views

[JAVA] idea mac Jar package build method and Maven method

1. Build method 1. Open Project Structure https://img blog.csdn.net/20180919143107815?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE3MjEzMDY3/font/5a6L5L2T/fontsize/400/fill/==/MAdiskol2 settinghttps://img blog.csdn.net/20180919143233141?waterm...

2022-11-24 | Uncle Cthulhu | 812 views

[JAVA] Maven profiles control multi-environment data source log packaging

1. First, the multi-environment folder: https://img blog.csdn.net/20180824171739174?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzE3MjEzMDY3/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA7==0database: jdbc.driverClassName=com.mysql.jdbc.Driver jdbc....

2022-11-24 | Uncle Cthulhu | 219 views

[JAVA] Use Hikari connection pool in springBoot

1. Configure spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.hikari.minimum idle=5 spring.datasource.hikari.maximum pool size=15 spring.datasource.hikari.auto commit=true spring.datasource.hikari.idle timeout=60000 spring....

2022-11-24 | Uncle Cthulhu | 232 views

【JAVA】JWT token verification code

1. Pom. XML JWT dependency groupId. Com auth0 groupId/artifactId Java JWT/artifactId version 3.3.0 / version/dependency (2) the class / / / / Created with IntelliJ IDEA. / / @ author: zhangenke / @ Date: 2018/8/29 on morning he / @ description: / / p...

2022-11-24 | Uncle Cthulhu | 449 views

【JAVA】idea hot deployment, background automatically update code spring, springboot

1.spring: dubug mode start, 2.springboot 1. pom.xml modify dependency groupId org.springframework.boot /groupId artifactId spring boot devtools /artifactId optional true /optional /dependency In the pom.xml file, add this configuration, you canUpdate...

2022-11-24 | Uncle Cthulhu | 960 views

[LINUX] About database, nginx, zookeeper, kafka, Jar package, tomcat startup method

1. Database database startup Method 1: /etc/init.d/mysqld start Method 2: Service mysql start (If the error report is insufficient, it is because you are not the owner of the mysql account) Change the owner of mysql. Originally, /var/The owner and gr...

2022-11-24 | Uncle Cthulhu | 569 views

[Springboot] SpringBoot cannot read static files after printing the Jar package, showing that the file does not exist

1. First of all, the error is shown in the picture below, but after I open the compressed file, the file exists, as shown in the picture below: https://img blog.csdnimg.cn/20181207165131352.png?x oss process=image/watermark,type ZmFuZ3poZW5naGVpdGk,s...

2022-11-24 | Uncle Cthulhu | 159 views

MySQL database: 6. Overview and syntax of constraints

MySQL database directory based on PythonPython based MySQL databasePython based mysql database 1. Constraint overview 1 Constraint overview 1. Why constraints 1 Why constraints 2. What are constraints 2 What are constraints 3. Constraint classificati...

2022-11-24 | kngk | 107 views

Summary of Docker commands

Docker process related commands to start docker service: systemctl start docker copy stop docker service: systemctl stop docker copy restart docker service: systemctl restart docker copy view docker service status: systemctl status docker copy settin...

2022-11-24 | Drink a cup of no | 534 views

JavaScript development tool WebStorm introductory tutorial: start running WebStorm (1)

WebStorm is a JavaScript development tools' JavaScript development tools, used in the JavaScript code and its related technology, including the TypeScript, React, Vue, presents, Node. Js, HTML, and style sheets.Like IntelliJ IDEA and other JetBrains ...

2022-11-24 | Shancheng code farmer brother | 739 views

The long article finishes the summary of MySQL common statements and commands in one go

Article Directory Connect to the database View all databases Create a database and set the character set and collation Use the database View the tables in the current database Delete the database View the table structure View the data in the table Vi...

2022-11-24 | share a drink no | 362 views

View the public network IP address under the Linux server

At the interface docking, many companies need each other to provide public IP address to configure the corresponding IP white list.So in the Linux environment how to check the corresponding public IP of the server, specific operation is as follows: t...

2022-11-24 | share a drink no | 971 views

Custom persistence layer framework MyORMFramework (1) - JDBC analysis and solutions

JDBC connection query database package com.zjq.jdbc; import com.zjq.entity.User; import java.sql./ ; import java.util.ArrayList; import java.util.List; // / / Connect to the database via JDBC/@author zjq / @date 2022/3/14 / / public class JDBCConnect...

2022-11-24 | Drink a cup of no | 419 views