Blame view

src/test/java/com.huaheng.test/BatchCreated.java 504 Bytes
mahuandong authored
1
2
3
4
5
6
7
8
package com.huaheng.test;

/**
 * Created by Enzo Cotter on 2020/1/12.
 */
public class BatchCreated {

    public static void main(String[] args) {
mahuandong authored
9
10
11
12
13
14
        String url = "jdbc:mysql://172.16.29.45:3306/wms_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2b8";
        String s = url.substring(0,url.indexOf("?")).substring(url.indexOf("3306/")+5);
        String u = s.substring(s.indexOf("3306/")+5);

        System.out.println(s);
mahuandong authored
15
16
    }
}