编程语言-日排行
前言 "由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败",这是经常遇到的问题 requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.github.com', port=443): Max retri ...
分类:编程语言 时间:2020-05-26 12:21:53 收藏:0 阅读:753
假设存在表格如下: select 'a' as category, 19 as duration union all select 'b' as category, 15 as duration union all select 'c' as category, 12 as duration uni ...
分类:编程语言 时间:2020-05-27 12:20:50 收藏:0 阅读:264
springboot springmvc 时区 相差八小时 一小时 夏令时 GMT+8 GMT+08 GMT%2B8 Asia/Shanghai @DateTimeFormat spring.jackson.date-format ...
分类:编程语言 时间:2020-05-28 23:47:42 收藏:0 阅读:446
今天在腾讯云直接使用命令启动jenkins,java -jar jenkins.war --httpPort=8080,这样启动关掉shell窗口或退回shell窗口,进程就会结束,需要重新 启动,非常麻烦。 怎么样能够后台运行呢? java -jar xxx.jar & 说明: 在末尾加入 & 符 ...
分类:编程语言 时间:2020-05-30 18:37:17 收藏:0 阅读:82
开发工具:idea springboot版本:2.2.6 jdk版本:1.8 这里导入依赖就不做展示了(主要导入mybatis-plus与springboot依赖,看业务需求吧) controller层代码如下: 这里主要是把字段修改了 /** * 批量删除用户信息 * 状态为1 :已删除 * * ...
分类:编程语言 时间:2020-06-02 00:22:25 收藏:0 阅读:1262
1、newCachedThreadPool 创建一个可缓存线程池 2、newFixedThreadPool 创建一个定长线程池,可控制线程最大并发数。 3、newScheduledThreadPool 创建一个定长线程池,支持定时及周期性任务执行。 4、newSingleThreadExecutor ...
分类:编程语言 时间:2020-06-02 22:28:00 收藏:0 阅读:61
Python中读取文件的方式有许多种,往往数据量大的情况令人苦恼。之前一篇博客https://www.cnblogs.com/xiaolan-Lin/p/12014686.html我说会发大文件读取的后续。 那么后续来啦! 1 import pandas as pd 2 # 采用块读取功能,读取cs ...
分类:编程语言 时间:2020-06-06 17:58:04 收藏:0 阅读:469
s := append([]int{1, 2}, []int{3, 4}...) https://stackoverflow.com/questions/16248241/concatenate-two-slices-in-go Link:https://www.cnblogs.com/farwis ...
分类:编程语言 时间:2020-06-06 18:29:10 收藏:0 阅读:1687
注释 单行注释 // 多行注释 /* */ 文档注释/** */ 注解 Annotation(注释 注解) 1.注解的写法 @XXX[(一些信息)] 2.注解放置在哪里 类的上面;属性上面;方法上面;构造方法上面;参数前面; 3.注解的作用 1.用来充当注释的作用(仅仅是一个文字的说明) @Depr ...
分类:编程语言 时间:2020-06-07 00:20:20 收藏:0 阅读:58
public class App { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); for (int i = 0; i < 1000; i++) { list.add(i); } Sy ...
分类:编程语言 时间:2020-06-09 21:15:27 收藏:0 阅读:622
Spring boot项目启动后出现java.awt.HeadlessException异常: 第一种只适合idea测试时,对于部署没效果 在VM的Option里加上一句-Djava.awt.headless=false 第二种方式就是将启动类里面换了 UserApplication为自己的类名 S ...
分类:编程语言 时间:2020-06-11 13:27:47 收藏:0 阅读:370
####问题springcloud getway配置文件加载失败 Description: Failed to bind properties under 'spring.cloud.gateway' to org.springframework.cloud.gateway.config.Gatew ...
分类:编程语言 时间:2020-06-14 12:44:38 收藏:0 阅读:623
1、properties配置文件读取 1 public class PropertyUtil { 2 private static String RESOURCE_NAME = "conf/sys.properties"; 3 private static Properties properties ...
分类:编程语言 时间:2020-06-19 11:01:22 收藏:0 阅读:2895
开头添加如下两行即可解决: #!/usr/bin/python # -*- coding: utf-8 -*- 主要是第二行,采用utf-8编码,也可写成# coding:utf-8,但#号一定要有。 问题二:UnicodeDecodeError: 'utf8' codec can't decode ...
分类:编程语言 时间:2020-06-20 10:25:07 收藏:0 阅读:822
1、技术:springboot、nginx; 练习springboot前后端分离,且用nginx代理部署,实现前后端分离。 控制层添加json数据,并返回json. @RestController @RequestMapping("/student") public class StudentCon ...
分类:编程语言 时间:2020-06-22 16:17:55 收藏:0 阅读:190
之前在一个项目中有一个API服务需要重构,尤其是接口的用户身份校验,原先的实现是将用户token放在URL请求参数中,然后通过AOP进行校验,现在要统一将token放在header中,但是这样修改会让用户也相应的修改他们的客户端,为了使版本发布后不至于对用户的服务产生太大影响,所以我们不仅能通过he ...
分类:编程语言 时间:2020-06-22 23:49:47 收藏:0 阅读:1049
python2.7.5升级到2.7.14 1.安装升级GCC yum install -y gcc* openssl openssl-devel ncurses-devel.x86_64 bzip2-devel sqlite-devel zlib python-devel mysql-devel o ...
分类:编程语言 时间:2020-06-23 18:00:44 收藏:0 阅读:83
SpringBoot事务 | 未生效 | 无效 | 不生效 | 不回滚 | 不起作用如果你使用了 @Transactional 和 @EnableTransactionManagement 没有生效,那么你看看在事务注解包含的方法内是否使用try-catch了。默认事务回滚对于try-catch的代 ...
分类:编程语言 时间:2020-06-24 14:13:26 收藏:0 阅读:342
一、问题来源 学习Spring Boot 时,利用@ConfigurationProperties(prefix = "")来绑定属性时报错 二、报错信息 Not registered via @EnableConfigurationProperties or marked as Spring co ...
分类:编程语言 时间:2020-06-25 20:22:54 收藏:0 阅读:869
#include "stdio.h" #define uint8_t unsigned char #define uint16_t unsigned short #define uint32_t unsigned int uint32_t Float_To_Hex(float data) { uin ...
分类:编程语言 时间:2020-06-28 17:21:21 收藏:0 阅读:590
1323334353625642
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!