02 2022 档案
摘要:1.导出整个数据库 1mysqldump -u 用户名 -p –default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1) 2 3mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql 2.导出一个表 1
阅读全文
摘要:1、Slicing s = ' hello ' s = s[:] print(s) # hello s = ' hello ' s = s[3:8] print(s) # hello 2、strip() s = ' hello '.strip() print(s) # hello s = '###h
阅读全文
摘要:对象、数组、集合 ObjectUtils 获取对象的基本信息 // 获取对象的类名。参数为 null 时,返回字符串:"null" String nullSafeClassName(Object obj) // 参数为 null 时,返回 0 int nullSafeHashCode(Object
阅读全文
摘要:我这里使用的是CentOS7,默认系统自带python2.7的版本,这个版本被系统很多程序所依赖,所以不建议删除,如果使用最新的Python3那么我们知道编译安装源码包和系统默认包之间是没有任何影响的,所以可以安装python3和python2共存 1、安装依赖包 1)首先安装gcc编译器,gcc有
阅读全文
摘要:1、前言 在控制器类的方法里自己写校验逻辑代码当然也可以,只是代码比较丑陋,有点“low”。业界有更好的处理方法,分别阐述如下。 2、PathVariable校验 @GetMapping("/path/{group:[a-zA-Z0-9_]+}/{userid}") @ResponseBody pu
阅读全文
摘要:<dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.9.3</version> </dependency> <dependency> <grou
阅读全文
摘要:删除旧索引 DELETE 索引名 创建新索引 PUT 索引名 { "settings": { "index": { "number_of_shards": "3", "number_of_replicas": "0" } } } 设置索引mapping PUT 索引名/_doc/_mapping {
阅读全文
摘要:public class EstablishIndex { public static JdbcTemplate getLocalHostTemplate() { DriverManagerDataSource driverManagerDataSource = new DriverManagerD
阅读全文
摘要:package com.iflytek.contractmanage; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Tool { private static Pattern linePat
阅读全文