此文章为转载git
原博地址 https://wiselyman.iteye.com/blog/2378154github
做者示例源码 https://github.com/wiselyman/query_with_example_and_rangeblog
亲测可用, Spring boot 版本 2.1.3.RELEASEget