上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页
摘要: 先看CommandLineRunner接口的API: import org.springframework.core.annotation.Order; public interface CommandLineRunner { /** * Callback used to run the bean. 阅读全文
posted @ 2021-08-11 16:06 Bonnie_ξ 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1. 正则表达式语法 1.1 字符与字符类 1 特殊字符:.^$?+*{}| 以上特殊字符要想使用字面值,必须使用进行转义 2 字符类 1. 包含在[]中的一个或者多个字符被称为字符类,字符类在匹配时如果没有指定量词则只会匹配其中的一个。 2. 字符类内可以指定范围,比如[a-zA-Z0-9]表示a 阅读全文
posted @ 2021-08-10 15:44 Bonnie_ξ 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 一、HTTP服务器 Nginx本身也是一个静态资源的服务器,当只有静态资源的时候,就可以使用Nginx来做服务器,如果一个网站只是静态页面的话,那么就可以通过这种方式来实现部署。 1、 首先在文档根目录Docroot(/usr/local/var/www)下创建html目录, 然后在html中放一个 阅读全文
posted @ 2021-08-10 15:42 Bonnie_ξ 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 第一种办法: import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org. 阅读全文
posted @ 2021-08-10 15:39 Bonnie_ξ 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1. Semaphore 是什么? Semaphore 字面意思是信号量的意思,它的作用是控制访问特定资源的线程数目。 2. 怎么使用 Semaphore? 2.1 构造方法 public Semaphore(int permits) public Semaphore(int permits, bo 阅读全文
posted @ 2021-08-10 15:31 Bonnie_ξ 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 1,a,28 2,b,35 3,c,28 4,d,35 5,e,28 6,a,28 7,b,35 8,c,28 9,a,28 案例 public class FileTest { static File filea = new File("C:\\Temp\\1\\a.txt"); static H 阅读全文
posted @ 2021-08-09 09:54 Bonnie_ξ 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 随着SpringBoot的流行,我们现在更多采用基于注解式的配置从而替换掉了基于XML的配置,所以本篇文章我们主要探讨基于注解的@Bean以及和其他注解的使用; @Bean 基础概念 @Bean:Spring的@Bean注解用于告诉方法,产生一个Bean对象,然后这个Bean对象交给Spring管理 阅读全文
posted @ 2021-08-05 14:53 Bonnie_ξ 阅读(4534) 评论(0) 推荐(0) 编辑
摘要: 一、Spring Web MVC 与 Spring Bean 注解 Spring Web MVC 注解 @RequestMapping @RequestMapping注解的主要用途是将Web请求与请求处理类中的方法进行映射。Spring MVC和Spring WebFlux都通过RquestMapp 阅读全文
posted @ 2021-08-05 14:51 Bonnie_ξ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 基本概念 数据库(database):保存有组织的数据的容器(通常是一个文件或一组文件) 数据表(table):某种特定类型数据的结构化清单 模式(schema):关于数据库和表的布局及特性的信息。模式定义了数据在表中如何存储,包含存储什么样的数据,数据如何分解,各部分信息如何命名等信息。数据库和表 阅读全文
posted @ 2021-08-05 14:45 Bonnie_ξ 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1.AtomicInteger的基本方法 (1) 创建一个不传值的,此时默认值为0 AtomicInteger atomicInteger = new AtomicInteger(); System.out.println(atomicInteger.get()); >输出: 0 (2) set() 阅读全文
posted @ 2021-07-29 15:03 Bonnie_ξ 阅读(252) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 38 下一页