上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: //字符串筛选 public class Main01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.nextLine().toCharArray(); Se 阅读全文
posted @ 2020-09-15 23:04 li修远 阅读(95) 评论(0) 推荐(0) 编辑
摘要: class Solution { public List<List<Integer>> threeSum(int[] nums) { List<List<Integer>> res = new ArrayList<>(); int n = nums.length; if(n <= 2) return 阅读全文
posted @ 2020-09-15 23:00 li修远 阅读(99) 评论(0) 推荐(0) 编辑
摘要: //爱奇艺笔试0913 // 三数之和 public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); Set<String> 阅读全文
posted @ 2020-09-13 21:35 li修远 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 创建线程池,准备好库存信息 public class Applicaiton { public static ThreadPoolExecutor pool = new ThreadPoolExecutor( 10, 100, 10, TimeUnit.SECONDS,new LinkedBlock 阅读全文
posted @ 2020-08-28 21:24 li修远 阅读(136) 评论(0) 推荐(0) 编辑
摘要: springboot 集成 elasticsearch 入门 //1. 定义配置类 ElasticSearchClientConfig class @Configuration public class ElasticSearchClientConfig { @Bean public RestHig 阅读全文
posted @ 2020-08-28 00:21 li修远 阅读(422) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Jedis jedis = new Jedis("127.0.0.1", 6379); jedis.flushDB(); JSONObject jsonObject = new JSONObject(); jsonOb 阅读全文
posted @ 2020-08-27 13:52 li修远 阅读(109) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset='utf-8'> <title> 计数器 </title> </head> <body> <div id="app"> <button @click="down"> - </button> <span> {{nu 阅读全文
posted @ 2020-08-26 13:05 li修远 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Ajax = Asynchronous JavaScript and XML = 异步的JavaScript和XML 优点:在不重新加载整个页面的情况下,可以与服务器交换数据并更新部分网页内容。 用于快速创建动态网页的技术。 通过在后台与服务器进行少量数据交换,Ajax可以使网页实现异步更新。 工作 阅读全文
posted @ 2020-08-26 00:24 li修远 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 如果只是使用@RestController注解Controller,则Controller中的方法无法返回jsp页面,或者html, 配置的视图解析器 InternalResourceViewResolver不起作用,返回的内容就是Return 里的内容。 如果需要返回到指定页面,则需要用 @Con 阅读全文
posted @ 2020-08-05 21:03 li修远 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Junit单元测试错误信息: Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.li.service.BookService' ava 阅读全文
posted @ 2020-08-04 18:07 li修远 阅读(1708) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页