- 博客(4)
- 收藏
- 关注
转载 关于String类型的题目,string将两个字符串相加是如何实现的,面应该如何解释
关于String类型的题目,string将两个字符串相加是如何实现的?对string相加以及变量相加,我借鉴几位大佬的经验1.从代码的角度解释对string相加以及变量相加,我借鉴几位大佬的经验1.从代码的角度解释问为什么会出现上述结果?答:先来回答str3为什么会等于str5吧:因为str5=“a”+“b”。这种方式使得str5在编译期间已经被确认了,编译器会对已经确认的进行优化,相当于直接写str5="ab"。而str3中已经在常量池中创建过一个"ab"了,所以这里的str5在常量池中查找的时
2022-01-19 11:10:04 262
原创 redis序列化器的性能比较测试
/*springboot-version 2.4.4 */@SpringBootTestpublic class MybatiscacheApplicationTests { //注意stringRedisTemplate是api存储的值,不能使用redisTemplate的api取值 //除非指定了 redisTemplate.setKeySerializer(new StringRedisSerializer()); @Autowired private Str
2021-04-13 15:27:35 609
原创 springboot自定义类获取容器中bean
import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;import org.springframework.stereotype.Component;/*在非springboot工厂管理的普通类中,如果要获取工厂管理的对象,我们不能.
2021-04-13 14:06:06 292
转载 postgresql 查询某一个表中的所有字段
select * from information_schema.columnswhere table_schema=‘public’ and table_name='表名称 ';
2019-03-15 10:11:59 7036 5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人