springmvc的参数绑定有以下几种方法: 1)默认的参数绑定 Request Response Session Model(实现ModelMap) 2)简单类型参数绑定 方法的形参上(Integer id,String,Double,Boolean) 3)pojo类型 4)包装类型 QueryV ...
分类:
编程语言 时间:
2020-07-05 00:23:48
阅读次数:
73
MyBatis的jdbcType类型 1.MyBatis通过包含的jdbcType类型 BIT FLOAT CHAR TIMESTAMP OTHER UNDEFINED TINYINT REAL VARCHAR BINARY BLOB NVARCHAR SMALLINT DOUBLE LONGVAR ...
分类:
数据库 时间:
2020-07-04 19:02:29
阅读次数:
82
c#中,在小数后面加f表示float,d表示double,m表示decimal,不加默认是double var a = 1.0f; //float var b = 1.0d; // double var c = 1.0m; // decimal 一直没搞懂为什么需要这么多类型,下面看一下它们能表示的 ...
#盒模型-Box Model,用来对HTML元素布局时使用 组成部分:元素内容content、内边距padding、边框border、外边距margin #内边距padding padding-top/right/bottom/left 简写属性padding #边框border border-st ...
分类:
Web程序 时间:
2020-07-04 17:15:06
阅读次数:
70
简单的贪心法,代码如下 1 #include <iostream> 2 #include<stdio.h> 3 double amount[1000]; 4 double price[1000]; 5 using namespace std; 6 int getMax(int n){ 7 int r ...
分类:
其他好文 时间:
2020-07-04 16:57:41
阅读次数:
70
思路:一开始想着可以通过对原数 * 10 然后对10 取余即可 但取余的代价比较高,后面改成原数 + 0.5 后转成整数,这种方式效率更高 private static void round(double n){ int num = (int) (n + 0.5); System.out.print ...
分类:
其他好文 时间:
2020-07-04 15:17:10
阅读次数:
213
切片机制源码: ①for (FileStatus file: files) 每个文件单独切片。 ②long length = file.getLen() 获取文件大小。 ③while (((double) bytesRemaining)/splitSize > SPLIT_SLOP) SPLIT_S ...
分类:
其他好文 时间:
2020-07-04 11:49:16
阅读次数:
106
一、打印float类型 %f来表示float和double类型的数字 %e来打印指数记数法的浮点数 如果系统支持十六进制的浮点数,可以使用a和A分别来代替e和E 打印long double类型要使用%Lf或%Le或%La来替代 #include<stdio.h> int D12_1_showf_pt ...
分类:
其他好文 时间:
2020-07-04 01:43:16
阅读次数:
77
类型转换 由于Java时强类型语言,所有要进行有些运算的时候,需要用到类型转换。 低 > 高 byte,short,char-> int -> long -> float -> double int i =128; byte b = (byte) i;//内存溢出 ? //强制转换 (类型)变量名 ...
分类:
其他好文 时间:
2020-07-04 00:57:09
阅读次数:
77
1.获取指定目录下的一级目录和文件,入参的目录后面不要加上/, 调用例如 fileFolder(client,"testYqt"); 这个目录名称是从bucket后面开始的,如果是整个bucket的,入参就为空 public static void fileFolder(OSSClient clie ...
分类:
其他好文 时间:
2020-07-03 10:58:38
阅读次数:
242