V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  BrbiwsFtd9zDGZqB  ›  全部回复第 2 页 / 共 9 页
回复总数  177
1  2  3  4  5  6  7  8  9  
❮ ❯
不错不错, 做的很棒!
可不可以支持一次抽奖,多个中奖奖品. 比如 点击一次抽奖获得两个奖品
2021 年 1 月 19 日
回复了 AkideLiu 创建的主题 › 程序员 › Spring Rest Controller @PostMapping parameter best practice ?
同意 #4

接手过一个项目, 全是 map 接参, 我 tm ******
2021 年 1 月 18 日
回复了 style8090 创建的主题 › 推广 › 家里的橘子滞销,水果电商怎么玩
tb 下单了 10 斤, 不甜回来砸摊子了啊 https://i.v2ex.co/504J5BO2.png
2021 年 1 月 15 日
回复了 BrbiwsFtd9zDGZqB 创建的主题 › 信息安全 › Nacos 出现严重安全漏洞 again !
@AA5DE3F034ACCB9E #6 确实, 这是个大佬, 抓了好多 bug
更有意思的是, 修复漏洞的 1.4.1 版本又出现了新的安全漏洞...
https://github.com/alibaba/nacos/issues/4701
2021 年 1 月 13 日
回复了 sandman511 创建的主题 › 程序员 › restTemplate 中文乱码
```
List<HttpMessageConverter<?>> list = restTemplate.getMessageConverters();
for (HttpMessageConverter<?> httpMessageConverter : list) {
if ( httpMessageConverter instanceof StringHttpMessageConverter) {
((StringHttpMessageConverter) httpMessageConverter).setDefaultCharset(StandardCharsets.UTF_8);
break;
}
}
```

替换一下 converter 试试?
2021 年 1 月 6 日
回复了 shangzhanyu 创建的主题 › Java › Java 最佳线程数怎么得来?
postgre 数据库推荐的设置方式, 一直在生产上这么设置没出啥问题 https://i.v2ex.co/504J5BO2.png
2021 年 1 月 6 日
回复了 shangzhanyu 创建的主题 › Java › Java 最佳线程数怎么得来?
How to Find the Optimal Database Connection Pool Size
A formula which has held up pretty well across a lot of benchmarks for years is that for optimal throughput the number of active connections should be somewhere near ((core_count * 2) + effective_spindle_count). Core count should not include HT threads, even if hyperthreading is enabled. Effective spindle count is zero if the active data set is fully cached, and approaches the actual number of spindles as the cache hit rate falls. Benchmarks of WIP for version 9.2 suggest that this formula will need adjustment on that release. There hasn't been any analysis so far regarding how well the formula works with SSDs.

However you choose a starting point for a connection pool size, you should probably try incremental adjustments with your production system to find the actual "sweet spot" for your hardware and workload.

Remember that this "sweet spot" is for the number of connections that are actively doing work. Ignore mostly-idle connections used for system monitoring and control when working out an appropriate pool size. You should always make max_connections a bit bigger than the number of connections you enable in your connection pool. That way there are always a few slots available for direct connections for system maintenance and monitoring.

https://wiki.postgresql.org/wiki/Number_Of_Database_Connections
2020 年 12 月 14 日
回复了 scr 创建的主题 › 程序员 › 一顿规划猛如虎, 上线一看
一顿规划猛如虎, 我们要高并发, 高可用, 微服务, 分布式, 百万在线.
上线一看, 在线设备总数 600 https://i.v2ex.co/504J5BO2.png
帮你测试了, 可以.
2020 年 10 月 13 日
回复了 sdbybyd 创建的主题 › Java › 请教大家 Jackson 泛型反序列化问题
new TypeReference<Channel<Item>>() {}
2020 年 6 月 19 日
回复了 sonxzjw 创建的主题 › 问与答 › newer,怎么入门网飞浏览大剧呢?
阿里轻量云可以
2020 年 6 月 18 日
回复了 xiaotianhu 创建的主题 › 程序员 › 此生,达成什么成就,才能让你不后悔?
做个废物, 过上混吃等死的幸福生活
@aptupdate #82 是的, 好多年了, 只穿这个 t. 我一直买的黑色网眼, 感觉不怎么透, 白色的可能会透吧
优衣库的 AIRism 网眼 T 恤.
太轻薄太舒服了, 再也穿不惯其他 T 恤.
比如, 无论在哪个 ide 中, 按 Caps + F 都是格式化代码
用 AutoHotKey 做的映射, 自定义了一套快捷键, 然后根据不同的 ide 脚本执行对应的 ide 中快捷键
2020 年 5 月 14 日
回复了 muyunn 创建的主题 › Java › spring boot + spring security + vue 动态权限如何实现
1. 存路由 存按钮权限.按钮级别的目前没有找到称心的办法. 现在就是再前端埋点写死的按钮权限, 然后调用后端接口返回用户具体的权限列表;

2. 存 url. 做动态权限的话, security 动态加载权限时, 没有 url 怎么匹配具体哪个 url 有什么权限.

另外, security 的动态权限挺难搞, 我目前的方法还得用反射拿到 SecurityMetadataSource 中的 map 才能真正动态修改权限配置(改完不用重启应用的那种). 楼主用的什么方法实现的动态配置能否请教一下
2020 年 5 月 13 日
回复了 jizhihaoSAMA 创建的主题 › 程序员 › 本科毕业生能直接全栈吗?
为什么不来试试 Angular 呢, 不是 AngularJs! 是 Angular!
1  2  3  4  5  6  7  8  9  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3446 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 10:02 · PVG 18:02 · LAX 02:02 · JFK 05:02
♥ Do have faith in what you're doing.