编程语言
简介 SPI(Service Provider Interface),是JDK内置的一种服务提供发现机制,主要核心就是解耦,一般用于框架的模块化开发,或者可拔插组件开发。 业内案例 logback 实现类 ch.qos.logback.classic.servlet.LogbackServletCo ...
SpringBoot中的核心注解注解:@SpringBootApplication等价于默认属性使用@Configuration(实现配置文件),@EnableAutoConfiguration(自动配置文件)、@ComponentScan(实现Spring组件扫描)。 SpringBoot热部署: ...
一、字典树Trie(前缀树) 原理:trie树实际上是一个确定有限状态自动机(DFA), 应用场景:敏感词过滤、例如自动补全,拼写检查等等。 优劣: 实现参考:https://www.cnblogs.com/liuawen/p/12854026.html Leetcode: Leetcode官方高频 ...
SpringMVC概述 Spring MVC属于SpringFrameWork框架的一部分,Spring Web MVC是一种基于Java的实现了Web MVC设计模式的请求驱动类型的轻量级Web框架,即使用了MVC架构模式的思想,将web层进行职责解耦,基于请求驱动指的就是 使用请求-响应模型,框 ...
List接口 三大特点:1.有序的collection,2.有索引,3.允许存储重复元素 有序:存储与取出元素顺序是一致的 List接口中常用的方法 public void add (int index,E element) 将指定元素,添加到该集合中指定位置上 public E get(int i ...
Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the ...
参考连接: https://www.itdaan.com/blog/2018/06/01/d249140c9d83bc14e03818eca41511ec.html 1、entity里的每一个字段,与数据库相对应,数据表结构的映射 2、dto里的每一个字段,是和你前台页面相对应, 3、VO,这是用来 ...
springboot内置了对定时任务的支持,相当于装了一个内存版的调度系统 一、首先有依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> ...
Spring 一个分层的JavaSE/EE full-stack(一站式)轻量级开源框架。 AOP面向切面编程 aspect oriented Programming (aspect 方面层面 oriented以——为方向的) 通过预编译方式和运行期间动态代理实现程序功能的统一维护的一种技术。 Sp ...
如下代码,不带参数的请求,直接去掉参数部分即可 import requests url = 'http://192.168.6.25:8768/headl/selectTypeList' r = requests.get(url) js = r.json() print(js) print(r.te ...