加载中
java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized 问题解决办法

方法1: mysql执行如下命令 set global time_zone='+8:00' 方法2: 在jdbc连接中加入时区,如 jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8......

06/12 11:39
32
mysql 数据库按名称查找触发器

select * from information_schema.`TRIGGERS` where TRIGGER_NAME ='触发器名称'

05/09 15:25
14
java 实现循环链表

public class CircleList { CircleNode currentNode; public CircleList(long size){ currentNode=new CircleNode(); CircleNode cur=currentNode; for(long i=1;i<size;++i){ CircleNode ne...

04/30 09:46
4
android 打开摄像头

private SurfaceHolder mHolder; private SurfaceView mSurfaceView; private Camera mCamera; mSurfaceView = (SurfaceView) this.findViewById(R.id.camsurfaceView1); mHolder = mSurface...

04/18 19:08
13
virtualbox 收缩linux虚拟机磁盘

1、用root帐号登录linux系统 2、$ dd if=/dev/zero of=zero.file 3、$ rm zero.file 4、关闭虚拟机 5、在宿主主机上运行 VBoxManage.exe modifyhd --compact 要压缩的文件.vdi......

centos安装postgres数据库

adduser postgres sudo yum install http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-redhat95-9.5-2.noarch.rpm -y sudo yum install postgresql95-server postgresql95-contrib ...

mysql 系统设置SQL

打开、关闭日志 SET GLOBAL general_log = 'Off'; SET GLOBAL general_log = 'On'; 查看日志是否打开 show variables like '%general%';......

03/23 19:35
12
用ssh2连接linux实现putty功能范例代码

RemoteConnect remoteConnect; remoteConnect=new RemoteConnect(); remoteConnect.setIp(ipAddr); remoteConnect.setUserName(user); remoteConnect.setPassword(password); Connection con...

用httpclient实现soap数据获取

HttpClientBuilder httpClientBuilder = HttpClients.custom(); HttpClient httpClient = httpClientBuilder.build(); HttpHost httpHost = new HttpHost("服务器IP地址", 80); HttpPost ht...

02/01 11:10
77
在pom.xml中配置nexus上传地址

<distributionManagement> <repository> <id>thirdparty</id> <url>http://{nexusIP地址}:8081/nexus/content/repositories/thirdparty</url> </repository> </distributionManagement>.....

01/28 19:53
17
storm 提交任务报SocketException错误及解决办法

提交任务爆错: org.apache.storm.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (Write failed) ..... Caused by: org.apache.storm.thrift.transport.TTr...

用netty 实现http server

workerGroup = new NioEventLoopGroup(); bossGroup = new NioEventLoopGroup(); ServerBootstrap b = new ServerBootstrap(); b.group(bossGroup,workerGroup) .channel(NioServerSocketCha...

01/15 20:19
29
java 用进程调用外部命令并获取返回结果

ProcessBuilder builder = new ProcessBuilder(command); Process subprocess = builder.start(); BufferedReader resultReader = new BufferedReader(new InputStreamReader(subprocess.get...

01/09 09:50
6
java 获取本机mac地址并转为字符串

public String getMacAddress() throws Exception{ InetAddress inetAddress = InetAddress.getLocalHost(); byte[] mac = NetworkInterface.getByInetAddress(inetAddress).getHardwareAddr...

01/09 09:49
10
centos 安装python计算环境pandas

1️⃣ 安装 pip ①离线安装 wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz tar zvxf 1.5.5.tar.gz cd pip-1.5.5/ python setup.py install ②用 yum安装 ...

java向activeMQ 发送数据代码模版

ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("user", "password", "brokerUrl"); Connection connection = factory.createConnection(); connection.start(); Sessi...

2018/12/19 20:37
13
maven 复制依赖包到指定目录

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> ...

2018/11/16 14:58
10
ToolProvider.getSystemJavaCompiler 返回null解决办法

选择菜单“Run”->"Run configurations",在Classpath中Bootstrap Entries 添加 tools.jar,如下图

2018/10/24 15:20
8

没有更多内容

加载失败,请刷新页面

返回顶部
顶部