- 添加安装包
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
- 更新yum命令
yum clean all && yum makecache
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
rpm -ivh mysql80-community-release-el7-3.noarch.rpm
yum clean all && yum makecache
//逐行读取UTF-8文件 | |
private String readFile( String file ) throws IOException { | |
Reader readerFile = new InputStreamReader( new FileInputStream(file), "UTF-8"); | |
BufferedReader reader = new BufferedReader( readerFile ); | |
String line = null; | |
StringBuilder stringBuilder = new StringBuilder(); | |
String ls = System.getProperty("line.separator"); | |
while( ( line = reader.readLine() ) != null ) { | |
stringBuilder.append( line ); |
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:jee="http://www.springframework.org/schema/jee" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:aop="http://www.springframework.org/schema/aop" | |
xmlns:tx="http://www.springframework.org/schema/tx" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
import java.io.IOException; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.ResultSetMetaData; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; | |
import java.util.HashMap; |