SpringBoot from getting started to giving up, Chapter 3

I. static resource mapping rules In the springBoot project, the relevant configuration of springmvc is in the webmvcauautoconfiguration class public void addResourceHandlers(ResourceHandlerRegistry registry) { if (!this.resourceProperties.isAddMappings()) { logger.debug("Default resource handling disabled"); return; ...

Added by themistral on Wed, 13 Nov 2019 12:02:12 +0200

SpringBoot from getting started to giving up, Chapter 2

I. Profile multi environment support 1. Multiple Profile files When we write the main configuration file, the file name can be: application-{profile}.properties/yml application.properties is used by default 2. yml supports multi document block mode server: port: 8080 spring: profiles: active: dev ##Activate dev configuration bl ...

Added by tim on Wed, 13 Nov 2019 06:54:26 +0200

[design mode] let's talk about the single example mode

? for some classes in the system, it is important to have only one instance. For example, a system can have multiple print tasks, but only one working task; a system can only have one window manager or file system; a system can only have one timing tool or ID (sequence number) generator. How to ensure that a class has only one instance and that ...

Added by barry_p on Wed, 13 Nov 2019 05:14:02 +0200

Python learning notes 29

File operation ② Binary mode parameter in the open() method: Tread text file (default) b read binary Binary operation by changing mode parameter file_name = 'DD.jpg' # Read mode # Tread text file (default) # b read binary # t b and r w a are added together. They are all parameters of mode with open(file_name,'rb') as fi ...

Added by nsstudio on Tue, 12 Nov 2019 21:09:15 +0200

c + + Network Programming TCP/IP

Cplusplus-tutorial-in-hindi.jpg Recently, I have more leisure time. When I have time, I will make up my mind to learn cpp. Before that, I had a certain foundation of cpp. So TCP/IP is the background of cpp learning. First write a simple TCP server and client to experience it. What TCP and UDP are so strange and far away when ...

Added by phpforever on Tue, 12 Nov 2019 19:49:17 +0200

Spring 5 source code analysis - container refresh - prepareBeanFactory() method

Last article: Spring 5 source code analysis - register configuration class Previously, the definition of configuration class has been registered in the container. Before comprehensive analysis and processing of configuration class, Spring needs to do some preprocessing, such as setting class loader, setting post processor ApplicationContextAwa ...

Added by RobReid on Tue, 12 Nov 2019 16:03:04 +0200

Thinking and comparison in the application of Spring WebFlux

This paper is based on Spring Cloud Finchley SR4 Through several questions, this paper analyzes the best practice of Spring WebFlux usage and compares it with another framework Vertx 1. Whether you must use the default web container, whether you can use your own web container, and whether you can have web and webplus at the same time Yes, thi ...

Added by cedtech23 on Tue, 12 Nov 2019 12:50:24 +0200

JavaScript Design Mode for Refining Internal Work

Sensation: Taste: plum ribs Cooking time: 20 min Someone asked me why I kept blogging? To quote famous novelist Stephen King, "Start writing!Young people." When you upgrade consumer interest to production interest, you will gradually discover the doors and magic that you didn't see before. Cough, please drink chicken soup when it's c ...

Added by rsasalm on Tue, 12 Nov 2019 05:18:08 +0200

10. Simple parameter binding for SpringMVC annotation development

Spring parameter binding process In SpringMVC, key/value data is requested from the client and bound to the parameter of the controller method through parameter binding.Instead of defining member variable reception in the controller class. Default supported types Objects of the lower type can be used by defining them directly on the controller ...

Added by MysticFallout on Tue, 12 Nov 2019 04:52:25 +0200

Talk about LagDetector of elastic search

order This paper mainly studies the LagDetector of elastic search LagDetector elasticsearch-7.0.1/server/src/main/java/org/elasticsearch/cluster/coordination/LagDetector.java /** * A publication can succeed and complete before all nodes have applied the published state and acknowledged it; however we need every node * eventually either to app ...

Added by dmayo2 on Tue, 12 Nov 2019 00:32:30 +0200