[learning notes] configuration files, yaml syntax, configuration injection and loose binding of SpringBoot

configuration file There are two configuration file formats for SpringBoot. You can choose one of them. yaml is officially recommended: Format of application.properties key=value application.yaml key: value format Profile location SpringBoot loads the main configuration file from all four locations; complementary configuration. Priority is fr ...

Posted by Jackanape on Fri, 20 Mar 2020 16:09:56 +0100

Practice of Design Mode in Meituan Takeaway Marketing Business

1. Preface With the continuous iteration and development of Meituan take-out business, the number of take-out users is also growing at a high speed.In this process, take-out marketing plays a "mainstay" role, because the rapid growth of users cannot be separated from efficient marketing strategies.Because of the changing market and bu ...

Posted by siesmith on Fri, 20 Mar 2020 09:20:17 +0100

Consul Registry for Micro Services Series

Original Link: https://mrhelloworld.com/posts/spring/spring-cloud/consul-service-registry/ Netflix Eureka 2.X https://github.com/Netflix/eureka/wiki officially announced the suspension of development, but it has little impact on domestic users. On the one hand, Eureka 1.X series is mostly used in China, and the official is actively maintaining ...

Posted by AJW on Fri, 20 Mar 2020 04:53:02 +0100

How to use the if else option in JSTL

Is there an if else tag in JSTL? #1 building In addition to the skaffman answer, a simple if else can use a ternary operator like this <c:set value="34" var="num"/> <c:out value="${num % 2 eq 0 ? 'even': 'odd'}"/> #2 building No if else, just. <c:if test="${user.age ge 40}"> You are over the hill. </c:if&g ...

Posted by leeroy1 on Tue, 17 Mar 2020 17:30:25 +0100

Using Spring OpenFeign to transfer files

Custom Catalog title is written here Module B uploads the file and calls the file saving implementation of module A 1.1 business scenario 2.1 troubleshooting process 3.1 solutions 4.1 knowledge expansion 4.1.1 @PostMapping parameter meaning 4.1.2 interface parameter description Complete code 1 in ...

Posted by vijay17877 on Tue, 17 Mar 2020 08:02:09 +0100

spring source 07: import tag parsing

This section introduces the analysis of import tag, which is used to introduce new resource files, such as redis, jdbc and other configuration files for a spring.xml. It is mainly to introduce the idea of recursive loading to the readers, including the idea that the beans tag also uses recursion, but be ...

Posted by ehask on Sat, 14 Mar 2020 18:06:46 +0100

Spring-4-database connection pool, JDBC Template, transaction control

The content of the content 1. Database connection pool * concept and function         * C3P0         * Druid * Custom JDBC tool class     2. Spring JDBC : JDBC Template 3. Transaction control in Srping##Database connection pool 1. Concept: in fact, it is a container (Collection) for database connecti ...

Posted by brewfan9 on Sat, 14 Mar 2020 11:51:54 +0100

ECMAscript Object Oriented Foundation

Object-oriented Encapsulation - the ability to store relevant information in objects Aggregation - The ability to store one object within another Inheritance - The ability of class properties and methods derived from another class (or classes) Polymorphism - The ability to write functions or meth ...

Posted by penguinboy on Sat, 14 Mar 2020 03:22:59 +0100

SpringBoot Integrates AOP Recording Interface Access Logs

Reference resources: SpringBoot Integration AOP AOP AOP is the abbreviation of Aspect Oriented Programming, which means: facet-oriented programming, a technology for unified maintenance of program functions through precompilation and run-time dynamic agents.With AOP, individual parts of business logic ...

Posted by qbox on Fri, 13 Mar 2020 03:40:43 +0100

Switch practice of building multiple data sources with SpringBoot+AOP

I collated Java advanced materials for free, including Java, Redis, MongoDB, MySQL, Zookeeper, Spring Cloud, Dubbo high concurrency distributed and other tutorials, a total of 30G, which needs to be collected by myself.Portal: https://mp.weixin.qq.com/s/osB-BOl6W-ZLTSttTkqMPQ For the common design modules in the microservice architecture, w ...

Posted by Brentley_11 on Thu, 12 Mar 2020 11:00:35 +0100