Loading
top
primary
Common Maven commands

Create a simple Java project: mvn archetype: generate - DgroupId=com. mycompany. example - ArtifactId=Example - InteractiveMode=false - ArchetypeCatalog=local Create a Java web project: mvn

primary
Graalvm fails to compile swing desktop applications

The previous article introduced Graalvm installation and static compilation, but errors may occur when directly compiling the java swing desktop application. The current latest version is GraalVM22.0.0.2, which supports jdk11 and jdk17. After reading the official github introduction, it is currently recommended to use the graal of jdk11

primary
Optimizing voting system performance based on redis queue

1. Voting requirements: (1) The voting system rules limit 10 votes per ip per day, and 10 votes can be the same option or different options. (2) The daily average access is 10 million. According to the 80/20 rule, the system should achieve concurrency per second: 10 million * 80%/(24 * 3600 * 20%) ≈ 463

2021/11/08 23:20
two hundred and thirty-nine
primary
Idea import Elasticsearch 7.10.2 source code and compilation run

1. Download the software Elasticsearch 7.10.2 Source code: v7.10.2 Elasticsearch - 7.10.2 - windows-x86_64.zip Binary version: 7.10.2 - windows-x86_64.zip, official elastic JDK/OpenJDK 14: jvm and jdk, gradle-6.6.1

primary
Jcef browser implements link filtering and link monitoring

The code in this article is based on the js script supported by jcef (Java Chromium embedded framework) and jdk's Nashorn engine (jdk8-jdk14) to implement link filtering and link monitoring functions. The interface of jcef provides the CefResourceRequestHandlerAdapter class to process links

No more

Loading failed, please refresh the page

 Back to top
Top