java calls the location of api services to obtain geographic location.

The first step is to get the ip address of the client first. It should be noted here that when you start apache service locally, when you call this method (including accessing jsp or html for asynchronous requests), the acquired IP or intranet IP is not real ip. But it doesn't matter. When the project is produced and put on the server, it can g ...

Posted on Tue, 01 Oct 2019 09:21:26 -0700 by ashton321

Leetcode learning process (continuous update)

Now it is 2019/9/17. At the beginning of this semester, I found that the pressure is not very great. I want to improve my programming ability as soon as possible. So I am ready to start my Leetcode trip, strive for one question a day, and arrange to learn other people's methods according to the time. 77 ...

Posted on Tue, 01 Oct 2019 04:55:35 -0700 by stoop

SQL rewriting of sharding-jdbc

[Cite Official Website] In scenarios containing tables, the logical table name in the table configuration needs to be rewritten to the real table name obtained after routing. Sublibrary only does not require table name rewriting. In addition, it also includes supplement and paging information correction, as shown in the figure:       This ...

Posted on Tue, 01 Oct 2019 02:49:07 -0700 by jwalsh

Super game P1000

Actually, this problem is not difficult. We use dynamic programming to solve this problem. This is the Legendary Super dp. Of course, editor a+b is also TLE. Here, I would like to share my experience with you readers. Ben'ao is so delicious that only a dp + matrix approach has been proposed to solve ...

Posted on Tue, 01 Oct 2019 00:12:11 -0700 by Stickybomb

MyBatis Plus-8 - Customize Global Operations

Customize global operations According to AutooSql Injector of Mybatis Plus, you can customize all kinds of sql you want to inject into the whole world, which is equivalent to customizing the method of automatic injection of Mybatis Plus. Previously, SQL statements that needed to be configured in xml are now injected when the mybatis environmen ...

Posted on Mon, 30 Sep 2019 17:59:42 -0700 by beinerts

Python 2.7 uses plotly to draw examples of local scatter plots and polygons

In learning how to use Python and plotly to process data, after two hours of hard trial and error, I finally completed the examples of scatter plot and polyline plot. In the process of using, I encountered a big pit, because the official case is stored online, so it needs to install jupyter (i.e. ipython) to use notebook to process the generate ...

Posted on Mon, 30 Sep 2019 13:35:37 -0700 by xepherys

LVM Dynamic Expansion of CentOS 7

The question of "Qi" The disk space on CentOS 7 is a little tight and needs to be expanded. Solve Query the current disk status [root@xxx ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 200G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda ...

Posted on Mon, 30 Sep 2019 12:42:14 -0700 by toppac

Java Guessing Game

Programming exercises Write stone - Scissors - cloth game program. The program prompts the player to generate a random number, which is 000, 111 or 222, representing stones, scissors and cloth respectively. The program prompts the player to enter 000, 111, or 222, and then displays a message indicatin ...

Posted on Mon, 30 Sep 2019 11:32:48 -0700 by jscofield

Talk about Mysql Health Check Processor of nacos

order This paper mainly studies Mysql Health Check Processor of nacos. MysqlHealthCheckProcessor nacos-1.1.3/naming/src/main/java/com/alibaba/nacos/naming/healthcheck/MysqlHealthCheckProcessor.java @Component public class MysqlHealthCheckProcessor implements HealthCheckProcessor { @Autowired private HealthCheckCommon healthCheckCommon; ...

Posted on Mon, 30 Sep 2019 06:49:32 -0700 by joebloggs1987

Spring Source Analysis Series - Analysis of AOP Loading Process through @EnableAspectJAutoProxy

Spring Source Analysis Series (1) -- Analysis of AOP Loading Process by @EnableAspectJAutoProxy AOP is aspect-oriented programming, which is relative to OOP object-oriented programming. Spring's AOP exists to decouple. AOP allows a group of classes to share the same behavior. OOP can only be achieved by inheriting classes and implementing inter ...

Posted on Mon, 30 Sep 2019 01:09:21 -0700 by akreation