V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  EminemW  ›  全部回复第 59 页 / 共 75 页
回复总数  1485
1 ... 55  56  57  58  59  60  61  62  63  64 ... 75  
2020-04-18 22:16:47 +08:00
回复了 lizy001 创建的主题 微信 听说微信公众号开始乱序时间轴的内测了,无力吐槽了
@iConnect 现在我关注一堆公众号,看的时候内容太杂乱,看推文的频率越来越低。。相信有很多用户跟我差不多
2020-04-17 12:38:05 +08:00
回复了 NoKey 创建的主题 Java 你在 Java 里用 try-catch 多不?
我有个疑问,这个抛异常会影响性能吗,之前不知道在哪里看过不要随便抛异常。。我的做法的是 return Result.error(code, msg);
2020-04-15 18:59:01 +08:00
回复了 hbolive 创建的主题 程序员 千万不要相信码农说的,任务太紧,没时间优化代码
你应该不是开发。业务不紧的话,可以做到你说的吧,但是到点下班就回家有什么问题(完成当天工作的前提下)。
2020-04-15 13:46:42 +08:00
回复了 unicloud 创建的主题 程序员 WTF, iPhone 这种全屏弹窗广告是什么鬼!
运营商自带的推销电话识别也是用这个形式通知的。
2020-04-13 01:30:41 +08:00
回复了 proxytoworld 创建的主题 服务器 如何判定一个 IP 地址属于一台服务器
arp 协议?
2020-04-13 01:22:21 +08:00
回复了 Winter1sComing 创建的主题 问与答 三大运营商想搞的这个“5G 消息” iOS 用户怎么办?
我觉得可以选择弄多一个 app
2020-04-13 00:59:47 +08:00
回复了 colinrat 创建的主题 京东 可以要求京东赔偿误工费么?
苹果就可以吧?
2020-04-12 01:25:29 +08:00
回复了 XbaiK 创建的主题 程序员 有人研究过 QQ 群课堂直播的吗?
QQ 跟微信 很难破的,能破的就可以养活一堆灰产
2020-04-11 14:02:47 +08:00
回复了 nnnToTnnn 创建的主题 程序员 今天发现一个帖子上提到过,不可逆的加密算法。
不可逆的不叫加密算法啊。。加密对应解密,不可解密的东西还叫加密算法?
我知道海外抖音有网页版,解析那个网页就可,不过这不会有版权问题嘛
2020-04-10 15:49:47 +08:00
回复了 bfbd 创建的主题 程序员 无代码开发平台都有哪些?有开源的吗?
@SpringCloser 看起来很不错,感谢
2020-04-10 15:29:16 +08:00
回复了 bfbd 创建的主题 程序员 无代码开发平台都有哪些?有开源的吗?
我想知道有没有根据图片自动生成 css 的。。渣后端自己写 css 太丑了
2020-04-10 15:19:05 +08:00
回复了 WhereverYouGo 创建的主题 Java SpringBoot RedisTemplate 如何缓存类?
//你注入的时候应该是这样
@Autowired
private RedisTemplate redis0;

@Autowired
@Qualifier("redisTemplate1")
private RedisTemplate redis1;
2020-04-10 15:18:23 +08:00
回复了 WhereverYouGo 创建的主题 Java SpringBoot RedisTemplate 如何缓存类?
我是自己封装了 RedisUtil 来用,
2020-04-10 15:10:44 +08:00
回复了 WhereverYouGo 创建的主题 Java SpringBoot RedisTemplate 如何缓存类?
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
* Redis 配置
*
*/
@Slf4j
@Configuration
public class RedisConfig {

/**
* 配置 lettuce 连接池
* @return
*/
@Bean
@ConfigurationProperties(prefix = "spring.redis.lettuce.pool")
public GenericObjectPoolConfig redisPool() {
return new GenericObjectPoolConfig<>();
}

/**
* 配置数据源
* @return
*/

@Bean("redisConf")
@Primary
@ConfigurationProperties(prefix = "spring.redis")
public RedisStandaloneConfiguration redisConfig() {
return new RedisStandaloneConfiguration();
}

@Bean("redis1Conf")
@ConfigurationProperties(prefix = "spring.redis1")
public RedisStandaloneConfiguration redisConfig1() {
return new RedisStandaloneConfiguration();
}

/**
* 配置连接工厂
* @param poolConfig
* @param redisConfig
* @return
*/

@Bean("factory")
@Primary
public LettuceConnectionFactory factory(GenericObjectPoolConfig poolConfig,@Qualifier("redisConf") RedisStandaloneConfiguration redisConfig) {
LettuceClientConfiguration clientConfiguration = LettucePoolingClientConfiguration.builder().poolConfig(poolConfig).build();
return new LettuceConnectionFactory(redisConfig, clientConfiguration);
}

@Bean("factory1")
public LettuceConnectionFactory factory1(GenericObjectPoolConfig poolConfig,@Qualifier("redis1Conf") RedisStandaloneConfiguration redisConfig) {
LettuceClientConfiguration clientConfiguration = LettucePoolingClientConfiguration.builder().poolConfig(poolConfig).build();
return new LettuceConnectionFactory(redisConfig, clientConfiguration);
}


/**
* 默认 redis0
* @param connectionFactory
* @return
*/
@Bean
@Primary
public StringRedisTemplate redisTemplate(LettuceConnectionFactory connectionFactory) {
return getRedisTemplate(connectionFactory);
}

@Bean("redisTemplate1")
public StringRedisTemplate redisTemplate1(@Qualifier("factory1")LettuceConnectionFactory factory) {
return getRedisTemplate(factory);
}

@Bean
@Primary
public RedisUtil redis0Util(StringRedisTemplate redisTemplate) {
return new RedisUtil(redisTemplate);
}

@Bean("redis1")
public RedisUtil redis1Util(@Qualifier("redisTemplate1") StringRedisTemplate redisTemplate) {
return new RedisUtil(redisTemplate);
}

private StringRedisTemplate getRedisTemplate(LettuceConnectionFactory factory) {
StringRedisTemplate template = new StringRedisTemplate();
template.setConnectionFactory(factory);
template.afterPropertiesSet();
return template;
}

}


//注入的时候
@Autowired
private RedisTemplate redis0;

@Autowired
@Qualifier("redis1")
private RedisTemplate redis1;
@b821025551b 应用层应该用啥,我用的是 Big Decimal
2020-04-09 01:23:34 +08:00
回复了 a1274598858 创建的主题 Apple 已升级 IOS13.4.1,就为了体验下深圳通...
Apple pay 绑个银行卡不就好了,刷的时候按两下锁屏键调出 apple pay 界面,然后把手机靠近刷卡机就好了。公交地铁都能用,还有优惠
2020-04-09 01:10:14 +08:00
回复了 aydd2004 创建的主题 程序员 请教个诡异的邮箱问题
说到网易还有更诡异的呢,我的 PC 端网易有道云笔记已经几个月没办法同步了,卸载重装也解决不了,Web 端跟 ios 端没问题
2020-04-08 21:40:38 +08:00
回复了 di94sh 创建的主题 分享发现 删库跑路新姿势
注销不是真的删数据吧,只是解绑,数据打个 flag…
1 ... 55  56  57  58  59  60  61  62  63  64 ... 75  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3987 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 05:10 · PVG 13:10 · LAX 22:10 · JFK 01:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.