上一页 1 ··· 155 156 157 158 159 160 161 162 163 ··· 491 下一页
摘要: @Repository public interface ProductRepository extends CrudRepository<Product, Integer> { @Query("select p from Product p where p.name like %:name%") 阅读全文
posted @ 2021-01-12 15:49 Zhentiw 阅读(156) 评论(0) 推荐(0)
摘要: Set<Book> lib = ... lib.stream() .flatMap(book -> book.getWords().stream()) .distinct() .forEach(System.out::println); 阅读全文
posted @ 2021-01-07 03:22 Zhentiw 阅读(121) 评论(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 阅读(118) 评论(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 阅读(60) 评论(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 阅读(100) 评论(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 阅读(360) 评论(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 阅读(79) 评论(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 阅读(72) 评论(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 阅读(93) 评论(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 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 155 156 157 158 159 160 161 162 163 ··· 491 下一页