JAVA implementation of QQ code scanning of third-party website login Demo

Because the company needs to use JAVA to realize QQ code scanning and login, after three days of hard work, it finally realizes this function. This is a Demo implemented by Servlet, which is easy to migrate into the project, not to mention much. Next, paste the code ConstantManager.java package com.qq.common; import java.net ...

Posted on Wed, 01 Jan 2020 04:39:09 -0800 by DangerousDave86

Talk about the indicator monitoring of lettuce

order This paper mainly studies the index monitoring of lettuce DefaultCommandLatencyEventPublisher lettuce-core-5.0.4.RELEASE-sources.jar!/io/lettuce/core/event/metrics/DefaultCommandLatencyEventPublisher.java public class DefaultCommandLatencyEventPublisher implements MetricEventPublisher { private final EventExecutorGroup eventExecutorG ...

Posted on Wed, 01 Jan 2020 02:58:18 -0800 by MarcB

Using jooq CodeGen Maven MySQL connector javamysql Maven to automatically generate database code summary

Before, jooq3.8 was used to generate database code. After a long time, it didn't use this function. When I used it again, I wanted to change it to the latest version of jooq 3.11.4. I found that I couldn't generate code. so after some tossing, reorganized this content. There are many jooq configurations on the Internet. Here ...

Posted on Tue, 31 Dec 2019 20:19:47 -0800 by northk

Kotlin interface

Compared with the java interface, the kotlin interface has some changes: In kotlin, interface can not only declare functions, but also implement functions. The only difference with classes is that they are stateless, so properties need to be rewritten by subclasses. Classes need to be responsible for saving the state of interf ...

Posted on Tue, 31 Dec 2019 18:13:58 -0800 by greens85

Android learning (20)SurfaceView

Android learning (20)SurfaceView SurfaceView: SurfaceView plays an important role in game development. It has more freedom to control the screen. Properties of SurfaceView: It can draw to the screen in the thread other than the main thread, which can avoid the main thread blocking when the drawing task is heavy, thus impro ...

Posted on Tue, 31 Dec 2019 16:21:21 -0800 by maliskoleather

Select any character from the given string and combine it into a new n-bit string to output all possible results

subject This is ZTE's Problem Description: assume that all characters in the string are not repeated, select any character from the string, combine it into a new n-bit string, and output all possible combined strings For example, if the input string is "abc" and the output is 2 bits, then the output is ab, ba, ac, ca ...

Posted on Tue, 31 Dec 2019 15:49:07 -0800 by Josh1billion

Spring boot multi data source dynamic switch

The environment of this article is SpringBoot + Spring + Mybatis Plus Ideas: 1. Configure multiple data sources 2. Use annotations to mark the target data source 3. Use AOP to switch data sources dynamically        1.yml: application.yml #app server: port: 8085 #spring spring: profiles: active: dev datasource ...

Posted on Tue, 31 Dec 2019 15:07:57 -0800 by twomt

The realization of the comment function of wechat applet

Recently addicted to learning can not extricate themselves, too long no code word, code a small program message function. The last effect picture of the previous wave: (delete button, which will be displayed only when it is the user's own message) implementation technique Background: SSM framework Database: MySQL database ...

Posted on Tue, 31 Dec 2019 13:30:23 -0800 by kireol

Open word file online and then open a file again

I. Introduction To open the file online, pagaeffice needs to open the Office file in the way of pop-up window with pobrowser method. Chrome browser does not start plug-ins by default from version 42, and completely closes plug-in calling interface from version 45. Any plug-ins (including online banking plug-ins) in web pages cannot run in Chr ...

Posted on Tue, 31 Dec 2019 12:44:15 -0800 by kilbey1

mybatis supports batch update

Sometimes we need to put multiple update statements we spliced into a < update > tag of mysql to execute, which is not allowed as usual. This requires us to change some things. First, we need to splice allowMultiQueries=true on our JDBC URL, as follows: url="jdbc:mysql://localhost:8066/TESTDB?allowMultiQueries=true" At ...

Posted on Tue, 31 Dec 2019 09:35:20 -0800 by mentalfloss