Database connection pool and com.mysql.jdbc.exceptions.jdbc4.Communications Exception exception

The abnormal information is as follows: com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in mit/datamodel/ibatis/person.xml. --- The error occurred while executing query. --- Check the select * from person where pID = ?. --- Check the SQL Statement (preparation failed). --- Cause: com.mysql.jdbc.exception ...

Posted on Sat, 22 Dec 2018 11:06:06 -0800 by daanoz

Domain is currently unable to handle this request (open_basedir)

Download the Yii2 installation package to Liunx and find that it is accessible with localhost/basic/web But if you use www.basic.com, you won't be able to access it. The page will prompt 500, as follows www.basic.com is currently unable to handle this request Then Stack Overflow looked up and found that just modify php.ini (save the sourc ...

Posted on Sat, 22 Dec 2018 09:51:05 -0800 by tigomark

Apache Commons Beanutils III (BeanUtils, ConvertUtils, Collection Utils...)

Preface I've learned the Property Utils and dynamic bean s in Apache Commons Beanutils package before. Next I'll learn the remaining tool classes, which I think are very useful, especially Collection Utils. BeanUtils Briefly introduce the use of the following two methods, populate and copyProperties. populate can help us copy the key-value ...

Posted on Sat, 22 Dec 2018 02:06:05 -0800 by shaitand

org.codehaus.jackson.map.exc.UnrecognizedPropertyException

Exception description Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "transIpAddr" (Class com.xxx.core.dto.RechargeWapReqDTO), not marked as ignorable at [Source: org.apache.catalina.connector.CoyoteInputStream@3dcc4d63; line: 1, column: 17] (through reference chain: com.jr ...

Posted on Fri, 21 Dec 2018 16:54:06 -0800 by snakebit

centos 6.8 Install LNMP Environment (linux+nginx+mysql+php)

Nginx characteristicsNginx has the advantages of stable performance, rich functions, simple operation and maintenance, fast processing of static files and little system resource consumption.1. Compared with Apache, Nginx serves as a Web server: it uses fewer resources, supports more concurrent connections and is more efficient.2. As a load bala ...

Posted on Thu, 20 Dec 2018 22:03:06 -0800 by russian_god

Spring Cloud Spring Boot mybatis Distributed Microservice Cloud Architecture (38) Logs using log4j

Introducing log4j dependencies When we created the Spring Book project, we introduced spring-boot-starter, which includes spring-boot-starter-logging, which is the default log framework of Spring Boot, Logback. So before we introduce log4j, we need to eliminate the dependency of the package and then introduce log4j dependency, as follows: &lt ...

Posted on Thu, 20 Dec 2018 04:15:05 -0800 by edmore

Java and Python automatically monitor tomcat and start and close tomcat in Windows environment

Background: During the Spring Festival, the server always suddenly disconnects the database link and always needs to restart tomcat manually. This is really a hard job. I can't solve the problem on the database. I simply write something to do the restart work of regular detection. Server environment: Windows 2003 service tomcat version: tomca ...

Posted on Thu, 20 Dec 2018 03:45:04 -0800 by woodsonoversoul

Integration of spring cloud cloud service architecture - HongHu commonservice-eureka project construction process

Now we build the following for the eureka project of HongHu cloud. The whole process of building is very simple. I will record every step of the process. I hope it can help you:1. Create a maven project named particle-common-eureka and inherit particle-commonservice. The specific pom.xml configuration file is as follows:<?xml version="1 ...

Posted on Wed, 19 Dec 2018 22:18:05 -0800 by FarhanKhalaf

11.28-31 Restricts a directory from parsing php, user_agent, php-related configuration

Access Control - Prohibit php parsing. note prohibits parsing PHP under a directory, which is very useful. When we do website security, this is used a lot. For example, some directories can upload files. In order to avoid the Trojan horse of uploaded files, we prohibit access under this directory to parse PHP. 1. Disable parsing PHP first < ...

Posted on Wed, 19 Dec 2018 03:57:04 -0800 by mohson

Spring Boot and Kotlin Timing Tasks

In writing Spring Boot applications, you will encounter such scenarios as: you need to send some messages, e-mails and other operations on a regular basis, or you may regularly check and monitor some signs, parameters and so on. Create timed tasks Writing timing tasks in Spring Boot is very simple. Here is an example of how to create timing tas ...

Posted on Tue, 18 Dec 2018 20:12:04 -0800 by Stickdragon