- 博客(6)
- 收藏
- 关注
原创 SchedulerConfigException DataSource name not set
【代码】SchedulerConfigException DataSource name not set。
2023-07-12 16:56:06
1939
1
原创 Spring里面Bean的生命周期
Bean的生命周期 1.Spring对bean进行实例化; 2.Spring将值和bean的引入注入到bean对应的属性中; 3.如果bean实现了BeanNameAware接口,Spring将bean的ID传递给setBean-Name()方法
2021-07-16 16:02:05
111
原创 onenote解决代码块高亮的解决方法
1.版本下载 官网:http://notehighlight.codeplex.com/ Onenote2010: OneNote 程序代码高亮插件 - Daddy_Long_Legs -博客频道 - CSDN.NET http://www.360doc.com/content/15/0801/18/14832860_488780780.shtml 下载地址: [1] http://www.andre-simon.de/zip/download.php [2] http://notehighlight.co
2021-04-25 17:31:45
492
原创 Collectors类的静态工厂方法
Collectors类的静态工厂方法能够创建的所有收集器 工厂方法 返回类型 用于 toList List<T> 把流中所有的项目收集到一个List toSet Set<T> 把流中所有的项目收集到一个Set,删除重复的项 toCollection Collection<T> 把流中所有的项目收集到给定的供应源创建的集合 counting Long 计算流中元素的个数 summingInt
2021-04-19 14:02:09
142
原创 Stream查找和匹配
Stream查找和匹配 Stream API通过allMatch、anyMatch、noneMatch、findFirst和findAny方法提供了这样的工具。 public class Dish { private final String name; private final boolean vegetarian; private final int calories; private final Type type; public Dish(String n
2021-04-15 17:48:11
950
原创 如何返回一张列表,列出里面各不相同的字符
如何返回一张列表,列出里面各不相同的字符流的扁平化尝试使用map和Arrays.stream()使用flatMap 流的扁平化 对于一张单词表,如何返回一张列表,列出里面 各不相同的字符 呢?例如,给定单词列表 [“Hello”,“World”],你想要返回列表[“H”,“e”,“l”, “o”,“W”,“r”,“d”]。 可以把每个单词映射成一张字符表,然后调用distinct来过滤 重复的字符。第一个版本可能是这样的: 代码片. List<String> words = Arrays.asL
2021-04-15 17:13:39
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人