1.获取验证失败错误 asp.net mvc会自动根据属性的类型进行基本的校验,但Asp.net mvc并不是在请求验证失败的时候抛异常,而是把决定权交给开发人员,开发人员需要决定如何处理数据校验失败。 在Action方法中可以通过ModelState.IsValid判断是否验证通过。 在使用Mod ...
分类:
Web程序 时间:
2021-06-22 17:46:53
阅读次数:
0
简介OS: CentOS Linux release 8.2 开始清除mysql# 查看系统信息$ cat /etc/redhat-releaseCentOS Linux release 8.2.2004 (Core) # 查看有没有mysql$ rpm -qa | grep mysqlmysql- ...
分类:
数据库 时间:
2021-06-22 17:36:24
阅读次数:
0
1、查看所有索引 GET _cat/indices 2、创建一个新的索引 PUT /test { "mappings": { "_doc": { "properties": { "id": {"type": "keyword"}, "title": {"type": "keyword"}, "esD ...
分类:
其他好文 时间:
2021-06-21 21:11:29
阅读次数:
0
pom.xml配置 需要添加spring-boot-starter-actuator很重要不要然报错 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-co ...
分类:
其他好文 时间:
2021-06-21 21:11:16
阅读次数:
0
升级原因:为了在本地安装跟公司测试服一样的服务器环境,需要把本地PHP版本从5.4升级到5.5。 操作步骤: 1. 查看当前centos版本 [root@localhost ~]# cat /etc/redhat-release 2. 根据当前centos版本,更换对应版本的RPM 源(软件仓库) ...
分类:
Web程序 时间:
2021-06-21 20:30:16
阅读次数:
0
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Query=smile # ...
分类:
其他好文 时间:
2021-06-21 20:30:01
阅读次数:
0
url的hash和HTML5的history URL的hash URL的hash也就是锚点(#), 本质上是改变window.location的href属性. 我们可以通过直接赋值location.hash来改变href, 但是页面不发生刷新 history H5的history接口是HTML5新增 ...
分类:
Web程序 时间:
2021-06-21 20:05:45
阅读次数:
0
函数获取使用高德天气接口 import requests 爬取数据 def read_location(name): centerurl = "https://restapi.amap.com/v3/config/district?keywords=" centerurl2 = "&subdistr ...
分类:
其他好文 时间:
2021-06-21 20:05:25
阅读次数:
0
1、创建topic 使用 kafka-topics.sh脚本 kafka-topics.sh --create --partitions 3 --replication-factor 2 --topic test --zookeeper hadoop01:2181,hadoop02:2181,had ...
分类:
其他好文 时间:
2021-06-20 18:38:22
阅读次数:
0
一、常用命令 1、关闭所有java进程命令: ps -ef | grep java | grep -v grep | awk '{print $2}' | xargs kill -9 2、批量文本操作 替换字符串:sed -i 's/原字符串/新字符串/g' /home/1.txt 删除字符串:se ...
分类:
系统相关 时间:
2021-06-20 18:10:37
阅读次数:
0