spring boot uses the assembly plug-in to package dependent jar s into external standalone folders
spring boot packs all dependent jars into one jar by default when it packs and runs jars. This is inconvenient because the packaged jar packages are relatively large and need to be uploaded to the server for a long time. Here, we can use the assembly plug-in to package dependent jars into external independent folders. In the future, we only nee ...
Posted by westmich on Wed, 25 Dec 2019 22:29:45 +0100
Enterprise springboot tutorial (7) springboot enables declarative transactions
springboot is very simple to start a transaction, only one annotation is needed @Transactional Just fine. Because in springboot, events have been enabled for jpa, jdbc and mybatis by default. When they are introduced, things will be enabled by default. Of course, if you need to use other orm, such as beatlsql, you need to configure the relevant ...
Posted by adriaan on Sun, 22 Dec 2019 18:24:06 +0100
C Language Notes 07_Enumeration&Pointer
Emum (enumeration)
Enumeration is a basic data type in C. It can make data more concise and readable.
Enumeration grammar is defined in the following format:
enum enumeration name {enumeration element 1, enumeration element 2,...};
For example, if there are 7 days in a week, instead of enumeration, we need to use #define to define an alias for ...
Posted by goodtimeassured on Thu, 19 Dec 2019 10:39:52 +0100
Use Consul to implement service discovery: instance-id customization (3 ways)
TIPS
This article is based on Spring Cloud Hoxton, supporting all versions of Spring Cloud in theory.
This article explores how to customize the InstanceId registered with Consul for microservices.
Consul uses InstanceId as its unique identity, while Spring Cloud Consul defaults to InstanceId of ${spring.application.name}-${server.port}.
The ...
Posted by zsxdcfv21 on Thu, 19 Dec 2019 09:50:32 +0100
Docker initial experience: docker deploys spring cloud project Eureka server
Docker deploys spring cloud project Eureka server
1 create Eureka server project
Create the parent project cloud demo, whose pom.xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:// ...
Posted by watson100 on Wed, 18 Dec 2019 15:37:04 +0100
On switch statement
Format of switch statement:
Switch (expression)
case value 1: execute statement; break;
case value 2: execute statement; break;
...
default: execute statement; break;
switch statement features:
(1) the value of expression can be byte, short, int, char;
After jdk5, enumeration types can be used;
After jdk7 ...
Posted by shae marks on Wed, 18 Dec 2019 00:14:49 +0100
Feign calls Hystrix and reports an error There is already 'computclienthystrix' bean method mapped
Use Feign to call Hystrix to learn the circuit breaker, and always report the error There is already 'computed client Hystrix' bean method mapped Related classes are as follows: Interface class for calling remote service
@FeignClient(value="COMPUTE-SERVICE", fallback=ComputeClientHystrix.class)
@RequestMapping("computer")
public interface Co ...
Posted by studio805 on Mon, 16 Dec 2019 18:09:51 +0100
Use of wechat applet Canvas
This issue introduces how Canvas draws pictures, including how to draw high-definition pictures, use network pictures / local pictures, date conversion (lunar and solar calendar / week conversion), picture adaptation mobile phone model, etc.
Layout introduction
There are four parts here. The picture above shows the QR Co ...
Posted by patrick99e99 on Mon, 16 Dec 2019 17:02:07 +0100
Spring boot series tutorial automatic configuration selection takes effect
191214 spring boot series tutorials automatic configuration selection takes effect
After writing a series of Spring blogs for so long, I found a problem. All previous articles focused on making one thing work. Is there anything that goes against it?
We know that @ ConditionOnXxx can be used to determine whether a configuration class can be ...
Posted by dsds1121 on Sun, 15 Dec 2019 13:50:17 +0100
spring boot default single thread queuing run timing task problem record
**Problem Description: when using the default scheduled tasks of springboot, if there are multiple tasks, the framework will only start one thread for execution by default, which will cause some tasks cannot start execution at the specified time**
**In addition, a separate record will be written about the synchronization lock of timed tasks un ...
Posted by anakadote on Sat, 14 Dec 2019 16:03:57 +0100