在Host节点下,添加Context:<Contextpath="/cas"docBase="D:/apachetomcat8.5.66/cas"reloadable="true"crossContext="true"debug="0"/启动访问:http://localhost:8080/cas目录D:/apachetomcat8.5.66/cas,可以是其他指定的目录。
springboot项目,需要添加依赖:<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstartervalidation</artifactId</dependencycontroller类:@PostMapping("test1")publicObjecttest1(@RequestBody@Va
删除重复数据DELETEFROMww_baidu_data_copy1WHEREidNOTIN(SELECTt.min_idFROM(过滤出重复多余的数据,SELECTMIN(id)ASmin_idFROMww_baidu_data_copy1GROUPBYstat_date,baidu_uid)t)
mysql取两点之间的距离,单位为:米st_distance_sphere(point(a.jd,a.wd),point(b.jd,b.dw))示例:set@p1=point(118.659802,24.885497);set@p2=point(118.671475,24.867432);selectst_distance_sphere(@p1,@p2)结果:2328.436587875269
拉镜像:dockerpullmysql:latest启动容器:dockerrunp3306:3306namemysqlcase\v/mydata/mysql/log:/var/log/mysql\v/mydata/mysql/data:/var/lib/mysql\v/mydata/mysql/conf:/etc/mysql/conf.d\eMYSQL_ROOT_PASSWORD=123456\d
使用unionall查询,报错:Illegalmixofcollationsforoperation'UNION'相同字段的编码为utf8_general_ci与utf8_unicode_ci,就会报Illegalmixofcollationsforoperation“UNION”的错误。解决1:CONVERT('ABC'USINGutf8mb4)解决2:直接修改对应字段的编码
激活工具:链接:https://pan.baidu.com/s/17qTH2gjwoUnSfmDDp476Dw提取码:0jre将navicat15.x注册机.exe复制到Navicat15.xforMySQL的安装目录。双击运行注册机,如下图所示,选择“Navicatv15”,Products选择“MySQL”,Languages选择“SimplifiedChinese”,然后点击“Patch”,
mkdirminiocdminiovidockerfiledockerfile的内容:基础镜像FROMminio/minioauthorMAINTAINERcjq新建dockercompose.yml:cd..vidockercompose.ymldockercompose.yml内容为:version:'3.8'services:kumaminio:container_name:kumamini
作为上级,要支持下级的注册、保活、注销、校时的请求。提供的url路径:序号功能URI请求方法1注册/VIID/System/RegisterPOST2注销/VIID/System/UnRegisterPOST3保活/VIID/System/KeepalivePOST4校时/VIID/System/TimeGETapplicationdev.ymlserver:port:10005server140
请求认证流程F1.客户端请求受保护资源,未携带认证信息POSThttp://127.0.0.1:8087/digest/authHTTP/1.1Accept:application/jsoncachecontrol:nocachePostmanToken:0d4e957af8ab4b01850f4967ff10b8a0UserAgent:PostmanRuntime/7.6.0Connection
ThisfunctionhasnoneofDETERMINISTIC解决:CREATEDEFINER=CURRENT_USERPROCEDURENewProc()DETERMINISTICBEGIN
报错:org.yaml.snakeyaml.error.YAMLException:java.nio.charset.MalformedInputException:Inputlength=1解决方法:IDEA设置:setting》EditorFileencoding其中所有编码都设置为UTF8
springboot在idea中main运行,RequestBody中文正常,jar包运行,中文乱码解决:UTF8的代码页为65001chcp65001javajarDfile.encoding=utf8YourName.jar
这是全局的gitconfigglobaluser.name"admin"gitconfigglobaluser.email"admin@sina.com"gitconfigglobaluser.passwordadmin当前目录的:gitconfiguser.name"admin"gitconfiguser.email"admin@sina.com"gitconfiguser.passwordad
宽松相等(looseequals)严格相等(strictequals)=常见的误区是:“检查值是否相等,=检查值和类型是否相等”正确的解释是:允许在相等比较中进行强制类型转换,而=不允许。
springboot后台服务,一直报错:templatemightnotexistormightnotbeaccessbyanyoftheconfiguredTemplateResolvers解决:报这个错的前提是在springboot的项目中使用了thymeleaf模版或freemarker模版。然后原因一般有二:1.真的没有这个模版文件,或是模版文件路径不正确。2.在非模版页面的请求中没有使用
java:yyyyMMddHH:mm:ssmysql:%Y%m%d%H:%i:%s
<linkrel="stylesheet"href="{ctxJs}/viewerjs/viewer.css"<scriptsrc="{ctxJs}/viewerjs/viewer.js"</script定义一个div,图片区:<divid="picShow"<imgdataoriginal="url"src="url"/</div初始化查看js:functionresetViewer(){win
NavicatPremium注册出现NoAllPatternFound!FileAlreadyPatched?解决方法直接打开你的NavicatPremium15再次安装一遍后(不要卸载原来的,安装目录直接覆盖),重新patch就可以了
wgethttps://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat8/v8.5.71/bin/apachetomcat8.5.71.tar.gztarzxvfapachetomcat8.5.71.tar.gzmvapachetomcat8.5.71tomcat8sh/root/tomcat8/bin/startup.shtailf/root/
SET@ncr_str='NCR1174599,NCR1174598';SELECTsubstring_index(substring_index(@ncr_str,',',b.help_topic_id+1),',',1)FROMmysql.help_topicbWHEREb.help_topic_id<length(@ncr_str)length(REPLACE(@ncr_str,',',''
Row61wascutbyGROUP_CONCAT()解决:SETgroup_concat_max_len=20000000;
D:\nifi\conf\nifi.propertiesnifi.remote.input.http.enabled=falsenifi.web.http.port=9090以下注释掉:nifi.web.https.host=127.0.0.1nifi.web.https.port=8443nifi.web.https.network.interface.default=
第1步:yuminstallgccgcccautoconfautomake出现类似如下错误:Couldnotresolvehost:mirrors.tencentyun.com;Unknownerror百度结果说:我们需要把DNS恢复为内网DNS:广州服务器:nameserver10.225.30.181nameserver10.225.30.223北京服务器:nameserver10.53.21
js的:<!https://mvnrepository.com/artifact/com.codeborne/phantomjsdriver<dependency<groupIdcom.codeborne</groupId<artifactIdphantomjsdriver</artifactId<version1.5.0</version</dependency第三方依赖的:<!https://
报错信息:Requestedbeaniscurrentlyincreation:Isthereanunresolvablecircularreference?出现原因:分别再过滤器和拦截器,同时注入同一个service.AFilter.java@AutowiredAserviceaservice;BFilter.java:@AutowiredAserviceaservice;解决:分别添加@Laz
javascriptvarchangeQtzrr=function(_this){varvals=(_this).val();varvalArr=(""+vals).split(",");vartxtArr=;for(vari=0;i<valArr.length;i){vartxt=(_this).find("option:selected:eq("+i+")").text();txtArr.pu
导出单个表:mysqldumph192.168.60.106P3306urootp123456dzhgasqgksqbd_cljbxxbd_cljbxx.sql导入单个表:mysqlh192.168.60.106urootp123456zhpcs<bd_cljbxx.sql
编码:(utf8/utf8mb4)mysqldumphost=192.168.60.15password=wellDone@123port=3306–defaultcharacterset=utf8user=zhgaSqgkSqRzhgasqgksqe:/qz_sqjw0805.db注:其中的ntd是表示导出表结构和数据;R是表示导出函数、存储过程mysqlurootp123456–default
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号