南贺神社

你写程序有写诗一样的感觉吗?


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • 0XCC

concurrency(4)Lock锁机制深入详解

Posted on 2019-12-08 Edited on 2019-12-14 In concurrency

Lock接口Lock implementations provide more extensive locking operations than can be obtained using synchronized methods and statements. They allow more f ...

Read more »

spring_boot_cloud(13)Value注解与BeanPostProcessor作用与分析

Posted on 2019-11-21 Edited on 2019-12-14 In spring_boot_cloud

@Value注解的使用方式@RestController@RequestMapping(value = "/person", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)public class MyController &# ...

Read more »

spring_boot_cloud(12)Spring_Boot集成内嵌服务器原理揭秘

Posted on 2019-11-10 Edited on 2019-12-14 In spring_boot_cloud

断点SpringServletContainerInitializer我们在SpringServletContainerInitializer的onStartup方法里边加一个断点,然后debug应用,让我们感到奇怪的是断点并不会进入到onStartup方法,那么我们看一下顶层接口ServletCo ...

Read more »

concurrency(3)死锁检测与相关工具详解

Posted on 2019-08-31 Edited on 2019-12-14 In concurrency

死锁线程1等待线程2互斥持有的资源,而线程2也在等待线程1互斥持有的资源,两个线程都无法继续执行。 活锁线程持续重试一个总是失败的操作,导致无法继续执行。 饿死线程一直被调度延迟访问其赖以执行的资源,也许是调度器先于低优先级的线程而执行高优先级的线程,同时总是会有一个高优先级的线程可以执行,饿死也叫 ...

Read more »

concurrency(2)synchronized关键字详解

Posted on 2019-08-21 Edited on 2019-12-14 In concurrency

变量在多线程之间的影响编写程序: public class MyThreadTest{ public static void main(String[] args) { Runnable r = new MyThread(); Thread t1 ...

Read more »

concurrency(1)Object类相关方法解读

Posted on 2019-08-11 Edited on 2019-12-14 In concurrency

Object类的并发相关方法-Object clone equals(Object) finalize getClass hashCode notify * notifyAll * registerNatives toString wait ...

Read more »

spring_boot_cloud(11)Spring_Boot对于Spring_MVC的整合原理深度解析

Posted on 2019-08-10 Edited on 2019-12-14 In spring_boot_cloud

引言现在我们使用spring boot搭建的工程和之前spring mvc的方式有一个很大的不同点就是:web.xml已经不需要配置,而之前的spring mvc需要配置web.xml,在里边配置DsipatcherServlet,spring boot之所以不需要这个配置是一位servlet的升级 ...

Read more »

spring_boot_cloud(10)Apache-Kafka相关介绍

Posted on 2019-07-28 Edited on 2019-12-14 In spring_boot_cloud

本片不对kafak原理做过多解释,只是介绍一下kafka和spring boot耦合的方式。 依赖引入在gradle依赖配置当中引入以下依赖: "org.springframework.kafka:spring-kafka","com.google.code.gson: ...

Read more »

spring_boot_cloud(9)Spring_Boot开发者工具与单元测试详解

Posted on 2019-07-28 Edited on 2019-12-14 In spring_boot_cloud

devtools准备gradle加入依赖: “org.springframework.boot:spring-boot-devtools:2.1.3.RELEASE”, devtools可以在不重启应用的情况下使修改的代码生效,也就是热部署。然后对idea进行一下设置:勾选这个选项。执行快捷键:ct ...

Read more »

spring_boot_cloud(8)SpringBoot整合WebSocket

Posted on 2019-07-28 Edited on 2019-12-14 In spring_boot_cloud

准备工作gradle引入相关依赖:“org.springframework.boot:spring-boot-starter-websocket”,“org.springframework.boot:spring-boot-starter-json” 新建一个接口EchoService,用来对消息进 ...

Read more »
12…18

CeaserWang

175 posts
20 categories
173 tags
© 2019 CeaserWang
Powered by Hexo v3.9.0
|
Theme – NexT.Muse v7.2.0