A preliminary understanding of greedy thought

catalogue 1. Distribution issues 2. Interval problem 3. The best time to buy stocks 4. Summary 1. Distribution issues Title Description: This kind of problem probably means that there are a group of children and a pile of biscuits. Each child is very hungry. If the size of the biscuit is greater than or equal to the child's hunger, ...

Posted by DfyAnt on Wed, 03 Nov 2021 20:54:24 -0700

System authorization: Windows authorization

Solemnly declare: This note is only prepared for the purpose of improving safety knowledge and sharing safety knowledge with more people. Do not use the technology in the note for illegal activities. The consequences caused by using the technology in the note have nothing to do with the author himself. It is everyone's responsibility to maintai ...

Posted by Harbinger on Wed, 03 Nov 2021 20:48:05 -0700

Gin framework: add API logging Middleware

introduceThrough a complete example, add API logging middleware to the micro service based on Gin framework.What is log interceptor / Middleware?The log interceptor logs every API request.We will use rk-boot To start the microservices of the Gin framework.Please visit the following address for a complete tutorial: https://rkdocs.netlify.app/cni ...

Posted by allelopath on Wed, 03 Nov 2021 20:43:13 -0700

N ways to implement various progress bars only using HTML/CSS

This article will introduce how to use HTML/CSS to create various basic progress bars and fancy progress bars and their animation. Through this article, you may learn: Create progress bar with HTML tag < meter > Create progress bar with HTML tag < progress > Limitations of HTML implementation progress bar Create a normal progress b ...

Posted by digitalgod on Wed, 03 Nov 2021 20:40:08 -0700

Vue project optimization (final output direction)

backgroundWe have a wechat applet. In the process of iteration, in order to catch up with the progress, most of the pages are initially implemented by using web view component nested h5 sites; h5 site is a single page application built by using the official Vue cli; With a commonplace talk of an old scholar, the pace of iteration starts to slow ...

Posted by nnichols on Wed, 03 Nov 2021 20:20:52 -0700

Preventing memory overflow of jdbc underlying driver loading data mechanism -- Mysql

1. Key objects The connection object -- com.mysql.jdbc.JDBC4Connection contains all configuration parameters about mysql. The setting method is set in the form of parameters attached to the url preparedStatement object -- com.mysql.jdbc.ServerPreparedStatement 2. Data result set reading method There are three types: One is in the form ...

Posted by WolfRage on Wed, 03 Nov 2021 20:06:46 -0700

Sharding JDBC realizes the separation of reading and writing + sub database and sub table zzsh

|Overview Shardingsphere Jdbc is positioned as a lightweight Java framework and provides additional services in the Jdbc layer of Java. It uses the client to connect directly to the database and provides services in the form of jar package. It can be understood as an enhanced version of Jdbc driver, which is fully compatible with Jdbc and vari ...

Posted by Jack_Slocum on Wed, 03 Nov 2021 20:04:03 -0700

Principles of Spring (15) -- implementation of Spring AOP source code

@TOC #Spring collection Record every step of the program___ auth:huf Yesterday, careful students have found a problem; In Spring 5.X or SpringBoot 2.x, the CGLIB interface is used regardless of whether the class implements the interface In Spring 5.X, Spring uses the CGLIB interface by default. In Spring 4, the JDK proxy is used, but after 5. ...

Posted by mlavwilson on Wed, 03 Nov 2021 19:51:54 -0700

Query logistics company information, Taobao erp, remark interface, billing interface and delivery interface

Query logistics company information Interface address:   http://api.vv-tool.com/tool/erps/companies Interface introduction:   Batch query logistics orders and return the logistics information status details of orders   Click to view details Request method:   POST Return format:   JSON Interface charges:   ...

Posted by Niccaman on Wed, 03 Nov 2021 19:39:55 -0700

Integrating Elasticsearch with Java SpringBoot

Integrating Elasticsearch with Java SpringBoot Create a project and import dependencies into pom.xml: <!-- SpringBoot Core package --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <version>Import version number&lt ...

Posted by powerspike on Wed, 03 Nov 2021 18:55:50 -0700