编程语言-周排行
一、tomcat设置 1. acceptCount The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any reque ...
借鉴于 https://www.cnblogs.com/ms-grf/p/7249220.html 缓存的目的在于节省访问时间以及减轻大并发量访问带来资源上的消耗。 一、外存 除计算机内存和CPU缓存以外的存储器,如常见的C、D、E、F盘,还有U盘,软盘,硬盘,光盘之类。断电后仍能保存数据的完整性。 ...
# pip install elasticsearch from datetime import datetime from elasticsearch import Elasticsearch es_servers = [{ "host": "10.10.6.225", "port": "9200... ...
<springBoot>(一)eclipse上安装spring tool suite时出现No software site found at jar是怎么回事 本来最开始的问题是因为 1,直接在Eclipse中点击 help intall new soft 输入连接 http://dist.spri ...
```cpp #include #define MAX_LEN 1024 bool debug_mode; // 使用方法同 printf void lprintf(const char *fmt, ...) { static bool print_time = true; //是否要打印时间: 当... ...
System.out.println(((User)SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getName()); ${session.SPRING_SECURITY_CONTEXT.authent ...
1.pom <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.10.2.1</version> </dependency> <dependency> <gro ...
在 npm 打包的时候,node环境控制台报错了,JavaScript heap out of memory 解决方法如下: 不管你是angular还是其他的,找到 如果是angular,那就找ng.cmd 如果是ant-design-pro,那就找roadhog.cmd 加上这个 --max_ol ...
最终解决的办法是修改jar包版本,一定要对应上。 ...
1.操作日志实体类 2.拦截器 测试结果: ...
第一次真正认真的玩起linux,装了一个虚拟机,一看python版本是2.7的,想弄个3.7的,于是,百度上找到了这篇文章https://www.cnblogs.com/JahanGu/p/7452527.html 。 结果执行到这一步“mv python python.bak”的时候悲剧了,因为我 ...
导入依赖的jar: 配置AutoJsonRpcServiceImplExporter: 接口文件: 实现类: 测试: ...
导入的maven项目pom.xml现红叉 分析原因:在maven本地仓库中找不到相应的jar包。 解决方案:让maven强制更新依赖。 项目右击菜单,Maven -> Update Project... (eclipse快捷键为:Alt + F5) 打开Update Maven Project对话框 ...
shiro使用的时候: java.lang.IllegalArgumentException: Odd number of characters. at org.apache.shiro.codec.Hex.decode(Hex.java:128) ~[shiro-core-1.4.0.jar:1. ...
比如现在我有一个最简单的加法(Jiafa)函数: def Jiafa(x, y): z = x + y return z print(Jiafa(1,2)) 这个很简单,一看就知道输出等于3。 那下一个问题是,如果我要算不固定个数的数字相加,那怎么来计算呢? 这时,就使用args和*kwarg,就可 ...
添加要bindingFile的jaxb配置文件,如下: 引入bindingFile的jaxb配置文件,如下: 转载:https://stackoverflow.com/questions/12508741/jaxb-generating-jaxbelementstring-instead-of-st ...
public static String encodeToBase64(String content){ MultiFormatWriter multiFormatWriter = new MultiFormatWriter(); Map hints = new HashMap(); hints.p ...
SpringBoot 使用feign时报错Service id not legal hostname SpringBoot 使用feign时报错Service id not legal hostname(xx_sss) 原因是feign不支持下划线"_",支持"-",改成xx-sss即可 参考:ht ...
@DatetimeFormat是将String转换成Date,一般前台给后台传值时用 @JsonFormat(pattern="yyyy-MM-dd") 将Date转换成String 一般后台传值给前台时 @JsonFormat会让时间以0区时间显示。如果直接使用会少了8小时修改为 @JsonFor ...