1.Service注册中心的配置文件 #配置Tomcat端口号 server.port=9100 #设置该服务注册中心的hostname eureka.instance.hostname=localhost #由于我们目前创建的应用是一个服务注册中心,而不是普通的应用,默认情况下,这个应用会向注册中 ...
分类:
编程语言 时间:
2020-05-24 20:56:09
阅读次数:
69
<insert id="insertCustomer2" parameterType="Customer"> /* order="AFTER"表示在下面的插入语句执行之后在执行 */ <selectKey keyColumn="cust_id" order="AFTER" keyProperty=" ...
分类:
其他好文 时间:
2020-05-23 20:38:04
阅读次数:
98
下载按钮:<buttonclass="layui-btnlayui-btn-sm"data-type="downTemplate">模板下载</button>对应方法:downTemplate:function(){window.open(ctx+"/download/template/customer");},java控制层:importorg.apache.common
分类:
编程语言 时间:
2020-05-20 09:21:18
阅读次数:
54
有意义的命名 1 名副其实 2 避免误导 3做有意义的分区 废话都是冗余。Variable永远不应出现在变量名中,Table一词永远不应出现在表名中。 当缺少明确约定:变量moneyAmout与money没区别,customerInfo与customer没区别,accountData与account ...
分类:
其他好文 时间:
2020-05-17 13:21:25
阅读次数:
53
0 setup 配置文件 import pandas as pd pd.plotting.register_matplotlib_converters() import matplotlib.pyplot as plt %matplotlib inline import seaborn as sns ...
分类:
其他好文 时间:
2020-05-16 18:25:50
阅读次数:
51
复合索引 ALTER TABLE crm_customer ADD INDEX phone_org (`telephone`, `orgid`); 参考: 1.添加PRIMARY KEY(主键索引) mysql>ALTER TABLE `table_name` ADD PRIMARY KEY ( ` ...
分类:
数据库 时间:
2020-05-12 16:56:17
阅读次数:
80
使用方法: 类名.objects.aggregate(聚合函数名('表的列名')) 聚合函数名: Avg 平均值 Count数量 Max 最大 Min 最小 Sum 求和 示例: Student.objects.aggregate(Max('sage')) 创建消费者数据表 Customer cla ...
分类:
其他好文 时间:
2020-05-11 14:57:45
阅读次数:
210
删除文档 要删除一个文档,我们使用 delete_one() 方法。 delete_one() 方法的第一个参数是 query 对象,用于定义要删除的文档。 注释:如果查询找到了多个文档,则仅删除第一个匹配项。 实例 删除地址为 "Mountain 21" 的文档: import pymongo m ...
分类:
数据库 时间:
2020-05-09 16:47:33
阅读次数:
73
删除集合 您可以使用 drop() 方法删除在 MongoDB 中调用的表或集合。 实例 删除 "customers" 集合: import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myc ...
分类:
数据库 时间:
2020-05-09 16:47:19
阅读次数:
73
There are lots of "tutorials" about promise in the internet. Recently I am studying the frontend code of SAP Cloud for Customer and I come across a re ...
分类:
其他好文 时间:
2020-05-07 22:58:06
阅读次数:
71