规则 描述 required:true 必须输入的字段。 remote:"check.php" 使用 ajax 方法调用 check.php 验证输入值。 email:true 必须输入正确格式的电子邮件。 url:true 必须输入正确格式的网址。 date:true 必须输入正确格式的日期。日期 ...
分类:
Web程序 时间:
2020-04-04 11:55:00
阅读次数:
89
Spring 远程调用Rest服务工具类,包含Get、Post、Put、Delete四种调用方式。 依赖jar <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <v ...
分类:
编程语言 时间:
2020-04-02 00:59:52
阅读次数:
72
题目描述 Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations pe ...
分类:
其他好文 时间:
2020-03-31 18:48:00
阅读次数:
81
linux安装maridb数据库jemalloc1依赖问题解决
分类:
数据库 时间:
2020-03-30 00:12:11
阅读次数:
185
基本的上都是请求方式的问题,get请求不需要加RequestBody注解,其他的请求需要 ...
分类:
其他好文 时间:
2020-03-25 23:45:43
阅读次数:
207
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3. | Django报错 ...
分类:
数据库 时间:
2020-03-25 18:59:34
阅读次数:
78
单个文件上传: // 通过MultipartFile获取上传的单个文件流 public @ResponseBody String uploadFile(@RequestParam(value = "file", required = false) MultipartFile mFile, Strin ...
分类:
Web程序 时间:
2020-03-24 11:02:21
阅读次数:
120
一、Spring中事务的隔离级别 此处涉及到数据库事务的四大特征:ACID 隔离性引发的问题 ; MySQL默认隔离级别是:REPEATABLE_READ 二、Spring中事务的传播行为 可以分为三类: 1、PROPAGATION_REQUIRED(默认类型)、PROPAGATION_SUPPOR ...
分类:
编程语言 时间:
2020-03-23 17:00:13
阅读次数:
79
SASL/PLAIN 是一种简单的 username/password 认证机制, 通常与 TLS 加密一起使用, 用于实现安全认证. Kafka 提供了一个默认的 SASL/PLAIN 实现, 可以做扩展后在生产环境使用. 1 配置kafka server端(每个broker) JAAS文件作为每 ...
分类:
其他好文 时间:
2020-03-23 00:29:27
阅读次数:
86
介绍下spring数据源连接的源码类:| 1 spring动态切换连接池需要类AbstractRoutingDataSource的源码 2 /* 3 * Copyright 2002-2017 the original author or authors. 4 * 5 * Licensed unde ...
分类:
编程语言 时间:
2020-03-22 13:58:49
阅读次数:
79