上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: 利用连接池连接postgresql,这里要注意的是,如果fetchall报错的话有可能是字符编码,需要设置字符编码如下: import psycopg2.pool from time import time t = time() n = 10000 simple_conn_pool = psycop 阅读全文
posted @ 2021-11-05 12:00 力王7314 阅读(1359) 评论(0) 推荐(0)
摘要: controller内容如下 UserController package com.fengzi.controller; import com.fengzi.service.UserService; import org.springframework.beans.factory.annotatio 阅读全文
posted @ 2021-10-30 23:02 力王7314 阅读(44) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-22 16:21 力王7314 阅读(150) 评论(0) 推荐(0)
摘要: RedisConfig配置内容如下: package com.example.demo5.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.ann 阅读全文
posted @ 2021-10-20 10:07 力王7314 阅读(3526) 评论(0) 推荐(0)
摘要: import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation. 阅读全文
posted @ 2021-10-19 14:47 力王7314 阅读(50) 评论(0) 推荐(0)
摘要: json字符串内容为: { "xiaowang": [{ "age": "21", "weight": "120" }], "xiaomei": [{ "age": "24", "weight": "135" }], "xiaohong": [{ "age": "22", "weight": "10 阅读全文
posted @ 2021-10-11 15:02 力王7314 阅读(279) 评论(0) 推荐(0)
摘要: 第一步,引入pom.xml文件 <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.12</version> </dependency> <dependency> <groupId>org 阅读全文
posted @ 2021-10-09 17:38 力王7314 阅读(110) 评论(0) 推荐(0)
摘要: String result = ""; String location = ""; BufferedReader in = null; try { String url3 = "https://xxx.xxx.com/v3/geocode/geo?key=xxxxxxxxxx"; String pa 阅读全文
posted @ 2021-10-09 10:10 力王7314 阅读(1743) 评论(0) 推荐(0)
摘要: mybatis编写顺序和内容 第一步,新建maven项目 省略...... 第二步,下载pom依赖,添加内容如下: 注意,如过想用lombok插件,光导入pom还不行,还需要再idea中下载plugin插件 <dependencies> <dependency> <groupId>org.mybat 阅读全文
posted @ 2021-10-08 15:36 力王7314 阅读(43) 评论(0) 推荐(0)
摘要: 当我们安装好helm之后我们可以开始自定义chart,那么我们需要先创建出一个模板如下: helm create myapp 之后我们可以一下目录结构,目录的作用我简要介绍一下: templates/ 目录包括了模板文件。当Helm评估chart时,会通过模板渲染引擎将所有文件发送到template 阅读全文
posted @ 2021-06-10 18:36 力王7314 阅读(1753) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页