lesson
Java多线程--Lesson03
线程同步 概念: 线程同步指的是在多个线程操作同一资源时,需要通过线程排队和线程锁来约束这些线程,使得其可以对其资源完成同步 并发指的是同一时间段内,有多个线程去操作同一个资源文件 由于同一进程的多个线程共享一块空间资源,带来方便的同时也带来了冲突问题,为了保证数据在方法中被访问的唯一性,在访问时加 ......
lesson1 多窗口运行
package com.kuang.lesson1; import java.awt.*; public class TestFame2 { public static void main(String[] args) { //展示多个窗口 MyFrame myFrame1=new MyFrame( ......
lesson1第一个窗口
来自B站的视频学习 package com.ages.lesson1; import java.awt.*; //GUI the first HMI public class TestFrame { public static void main(String[] args) { //Frame,J ......
Physical Education Lessons
##[Physical Education Lessons](https://codeforces.com/contest/915/problem/E) #### 题意: Alex高中毕业了,他现在是大学新生。虽然他学习编程,但他还是要上体育课,这对他来说完全是一个意外。快要期末了,但是不幸的Ale ......
Java多线程-Lesson02
一.Lamda表达式 λ是希腊字母表的第十一位字母,英文名是Lambda Lamda表达式的出现主要是为了避免匿名内部类过多的原因,它属于函数式编程的范畴 为什么要使用Lamda表达式? 避免匿名内部类定义过多 可以让你的代码看起来很简洁 去掉了没有意义的代码,只留下一堆核心逻辑 主要使用在创建的类 ......
Java多线程-Lesson01-线程的创建
线程创建的三种方式 继承Thread类 步骤: 继承Thread类 重写run()方法 调用start()开启线程 重写run()方法: @Override public void run() { for (int i = 0; i < 200; i++) { System.out.println( ......
【Oracle impdp/expdp】Big lesson from failure with impdp/expdp in 12c
最近忙于做数据库12c-19c迁移,基于公司的情况,选用了最拿手的expdp/impdp oracle自带的王者级别工具进行迁移。 按照常规思路,一顿操作猛如虎,expdp 直接选用full=y将数据全库导出,然后在19c中导入,无论是12c中的导出还是19c中的导入数据,没有任何的错误, 然而在无 ......
Three.js#03#Three.js Fundamentals starting lesson(笔记)
Three.js Fundamentals starting lesson 基础 注意,在图中,相机一半在镜头外,一半在镜头内。这是为了表示,在three.js中,与其他对象不同,相机不必在场景中发挥作用。就像其他对象一样,Camera作为其他对象的子对象,将相对于其父对象移动和定向。在关于场景的文 ......
S2 - Lesson 54 - Sticky fingers
Content Sticky fingers After breakfast, I sent the children to school and then I went to the shops. It was still early when I returned home. The child ......
S2 - Lesson 52 - Hot snake
Content Hot snake At last firemen have put out a big forest fire in California. Since the, they have been trying to find out how the fire began. Fores ......
Coinc1dens's lessons for cryptography beginner
Coinc1dens's lessons for cryptography beginner 10分题懒得写,赛后浅写一下(有些还真写不出来)太屑了 古典懒得写,相信都写的出来 1.child exgcd i 即为m在模p情况下的乘法逆元,反着求i在模p下的乘法逆元即可。 2.child_quadr ......
S2 - Lesson 52 - A pretty carpet
Content A pretty carpet We have just moved into a new house and I have been working hard all morning. I have been trying to get my new room in order. ......
S2 - Lesson 51 - Reward for virtual
Content Reward for virtual My friend, Hugh, has always been fat, but things got so bad recently that he decided to go on a diet. He began his diet a w ......
SpringMVC-lesson08-json-3-2023-03-24
阿里巴巴开发的JSON <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.60</version> </dependency> @RequestMapping( "/j ......
SpringMVC-lesson08-json-2-2023-03-24
公共类 package com.feijian.utils; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import c ......
SpringMVC-lesson08-json-2023-03-24
1\JSON复习 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript"> var user ={ name:"飞剑", ag ......
SpringMVC-lesson07-乱码问题-2023-03-24
一、TOMCAT CONFIG文件配置: <Connector port="8080" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" URIEncoding="UTF-8"/> 二、springmvc自带过滤配置 <! ......
SpringMVC-lesson06-controller深入-2023-03-24
@Controller @RequestMapping("/user") public class UserController { @GetMapping("/t1") //一般都加上@ReuestParam,避免前端传递的参数名字和后端不一致 public String test1(@Reque ......
SpringMVC-lesson05-controller&Restful风格-2023-03-22
第一种:实现接口Controller定义控制器是比较老的办法 缺点:一个控制器只有一个方法,如果有多个方法需要定义多个controller,定义方式比较麻烦 第二种:使用注解 @Controller 视图可以被复用 几种常用的注解 @Component 组件 @Service service @Co ......
S2 - Lesson 50 - Taken for a ride
Content Taken for a ride I love travelling in the country, but I don't like losing my way. I went on an excursion recently, but my trip took me longer ......
SpringMVC-lesson04-hellospringmvc-注解开发-2023-03-22
真实开发-注解开发 1、 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in ......
SpringMVC-lesson03-hellospringmvc-原理图分析-2023-03-22
图为SpringMVC的一个较完整的流程图,实线表示SpringMVC框架提供的技术,不需要开发者实现,虚线表示需要开发者实现。 简要分析执行流程 1\DispatcherServlet表示前置控制器,是整个SpringMVC的控制中心。用户发出请求,DispatcherServlet接收请求并拦截 ......
SpringMVC-lesson02-hellospringmvc-2023-03-21
参考网页:https://www.kuangstudy.com/bbs/1618521039124783105 第1步:注册web.xml,注册DispatcherServlet <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http: ......