(El-button-group) Solve: optimize el-button to realize the use case of button connection and dynamic switching (involving: dynamic binding class)

Ⅰ、Comparison between the components provided by Element-ui and the desired target situation: 1. Element-ui provides components: First, the code provided by Element-ui is (sample code, the example is as follows): // Code provided by Element-ui: <template> <div> <el-button-group> <el-button type=”primary” icon=”el-icon-arrow-left”>Previous page</el-button> <el-button type=”primary”>Next page<i class=”el-icon-arrow-right el-icon–right”></i></el-button> </el-button-group> <el-button-group> <el-button type=”primary” icon=”el-icon-edit”></el-button> <el-button type=”primary” icon=”el-icon-share”></el-button> […]

How to dynamically refresh the configuration of SpringBoot (scheme)

For microservices, configuration localization is a big problem. It is impossible to restart the service every time you need to change the configuration. Therefore, the final solution is to externalize the configuration and host it on a platform to achieve unnecessary Restart the service to modify multiple valid purposes at once. But for the Spring […]

Encryption and Decryption Debugging Dynamic Debugging Technology (2) – Common Breakpoints

Directory common breakpoints 1.INT 3 breakpoint detection bypass 2. Hardware breakpoint principle We give the example of hardware interrupt remove hardware breakpoint 3. Memory breakpoint principle example delete the difference Summarize 4. Memory access one-time breakpoint 5. Message breakpoint example delete 6. Conditional breakpoints (1) Interrupt by register condition (2) Interrupt by memory condition 7. […]

How to dynamically refresh the configuration of SpringBoot (custom)

The custom part of this article includes 1. Custom refresh event (with RefreshScope to achieve automatic refresh) 2. Force refresh the context (restart the entire ApplicationContext) 3. Implement Http interface loading of configuration files (similar to Nacos) Custom refresh event (with RefreshScope to achieve automatic refresh) Manual refresh of configuration based on org.springframework.cloud.context.config.annotation.RefreshScope Spring uses […]

How to dynamically refresh the configuration of SpringBoot (implemented by Nacos)

Nacos startup loading configuration Load NacosConfigBootstrapConfiguration through META-INF/spring.factories org.springframework.cloud.bootstrap.BootstrapConfiguration=\ com.alibaba.cloud.nacos.NacosConfigBootstrapConfiguration Initialize NacosConfigProperties and NacosPropertySourceLocator @Configuration @ConditionalOnProperty(name = “spring.cloud.nacos.config.enabled”, matchIfMissing = true) public class NacosConfigBootstrapConfiguration { @Bean @ConditionalOnMissingBean public NacosConfigProperties nacosConfigProperties() { return new NacosConfigProperties(); } @Bean public NacosPropertySourceLocator nacosPropertySourceLocator( NacosConfigProperties nacosConfigProperties) { return new NacosPropertySourceLocator(nacosConfigProperties); } } Load configuration to org.springframework.core.env.Environment via com.alibaba.cloud.nacos.client.NacosPropertySourceLocator @Override public […]

Dynamic Programming – Knapsack Problem

01 knapsack problem Problem Description: There are N items and a knapsack with capacity V. Each item can only be used once. The volume of the i-th item is vi, and the value is wi. Solve which items to put into the backpack, so that the total volume of these items does not exceed the […]

Dynamic Programming – Interval DP

Combination of stones (weakened version) Description of topic https://www.luogu.com.cn/problem/P1775 with N ( N ≤ 300 ) N(N \le 300) N(N≤300) piles of stones are arranged in a row, and the number is 1 , 2 , 3 , ? ? , N 1,2,3,\cdots,N 1,2,3,?,N. Each pile of stones has a certain mass m i ( […]