上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 496 下一页
摘要: Set<Book> lib = ... lib.stream() .flatMap(book -> book.getWords().stream()) .distinct() .forEach(System.out::println); 阅读全文
posted @ 2021-01-07 03:22 Zhentiw 阅读(129) 评论(0) 推荐(0)
摘要: Entity: package com.frankmoley.security.app.auth; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Generated 阅读全文
posted @ 2021-01-06 02:42 Zhentiw 阅读(129) 评论(0) 推荐(0)
摘要: Code to improve: final Collection<DiscussionTopics> topics = s.getTopics(); final boolean anyTopics = topics != null && !topics.isEmpty(); Change to: 阅读全文
posted @ 2021-01-05 17:05 Zhentiw 阅读(62) 评论(0) 推荐(0)
摘要: Module defined what can be used inside the module package and what outside world can use inside our module. module-info.java /* * To change this licen 阅读全文
posted @ 2021-01-04 02:44 Zhentiw 阅读(108) 评论(0) 推荐(0)
摘要: Highlights: Solve the complexities of write Redux (actions, reducers, selector...middleware...) Solve the immutable pattern with nested spread operato 阅读全文
posted @ 2021-01-02 21:06 Zhentiw 阅读(382) 评论(0) 推荐(0)
摘要: public class Code { public static void main(String[] args) { IntStreams.range(1,4) .forEach(System.out::println); // 1 2 3 Arrays.stream(new int[] {1, 阅读全文
posted @ 2020-12-30 03:47 Zhentiw 阅读(84) 评论(0) 推荐(0)
摘要: public class Code { public static void main(String[] args) { Arrays.asList("red", "green", "blue") .stream() .sorted() .findFirst() .ifPresent(System. 阅读全文
posted @ 2020-12-30 03:43 Zhentiw 阅读(76) 评论(0) 推荐(0)
摘要: public class Code { public static void main(String[] args) { List<String> names = Arrays.asList("Paul", "Jane", "Sam", "Michaela"); // Way to sort pri 阅读全文
posted @ 2020-12-30 03:32 Zhentiw 阅读(102) 评论(0) 推荐(0)
摘要: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>c 阅读全文
posted @ 2020-12-27 22:59 Zhentiw 阅读(110) 评论(0) 推荐(0)
摘要: application-docker.properties: spring.datasource.url=jdbc:mysql://${server}:${port}/explorecali spring.datasource.username=${dbuser} spring.datasource 阅读全文
posted @ 2020-12-27 22:52 Zhentiw 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 496 下一页