JNI development minimalist tutorial
JNI(Java Native Interface)
Java calls C/C + +, C/C + + calls a set of Java API
Preface:
Learning JNI requires knowledge of C/C + + and JNI manual
Students who want to learn, please follow my study notes NDK development learning notes
1: write native methods in eclipse
public class Java2cpp {
static {
System.loadLibra ...
Posted by bealers on Sat, 14 Dec 2019 07:28:06 -0800
Using httpinvoker to make methods between two systems call each other
Business scenario: there may be communication (method call) between two systems. In this case, httpinvoker can be used to implement a lightweight solution
It is divided into server and client. The client calls the interface provided by the server;
Client configuration:
<bean id="OpenApi4SoaService" class="cn.com.agree.open.mvc.service.imp ...
Posted by lordofgore on Wed, 11 Dec 2019 08:27:49 -0800
java uses Ant script to generate war package
Preparation before using ant script (this part can be ignored by ant in eclipse)
1. Download an ant installation package. For example: apache-ant-1.8.4-bin.zip. Unzip to disk E.
2. Configure environment variables. Add ANT_HOME: E:\apache-ant-1.8.4; add PATH: E:\apache-ant-1.8.4\bin.
3. Check whether ant configuration is co ...
Posted by cairesdesigns on Mon, 09 Dec 2019 01:54:12 -0800
[xmind] generate mind map using Java
Preface
In our daily work and study, we often use mind mapping as a tool to transform abstract and intangible thinking into tangible and concrete images, which is a great artifact to clarify ideas and sort out logic.
To be exact, mind mapping is not a specific tool, but a method. It's the Tao, not the art. When landing, we usually need externa ...
Posted by jarvishr on Sun, 08 Dec 2019 20:28:02 -0800
Not a simple Integer
Integer is a simple one, but it's a little different. Integer is a wrapper class of int, which can play the role of caching. In the java foundation, it said that its range is (- 128-127). In this return, there is a cache, and no new integer object will be created, and its maximum value can be set by setting VM parameters.
Let's take a look at t ...
Posted by .Darkman on Sat, 07 Dec 2019 23:03:35 -0800
RPC based on TCP protocol
Preface:
Environmental Science:
windown 10
Eclipse
JDK 1.8
Concept of RPC:
RPC is a remote procedure call and the basis of distributed web site.
Experiment
SayHelloService.java interface class for specification
SayHelloServiceImpl.java is the implementation class of SayHelloService
Provider.java is the service providing class
C ...
Posted by rg_22uk on Mon, 02 Dec 2019 09:34:18 -0800
[JVM] troubleshooting
The call scenario of jetty is: in order to support the annotation mode in the Servlet specification (so that it is no longer necessary to describe the deployment of the Servlet in the web.xml file and simplify the development process), jetty will scan the class and lib packages when it starts, register the Servlet and Listener declared in the a ...
Posted by fukas on Sat, 30 Nov 2019 18:18:10 -0800
Eclipse integrated hadoop plug-in development environment
First, set up the hadoop environment under win10, hadoop can runExtract the installation package and source package of Hadoop 2.7.7, create an empty directory after decompression, and copy all the jar packages under the unpacked source package and other packages except kms directory package under share/hadoop under the installation package to ...
Posted by ThunderVike on Tue, 19 Nov 2019 13:38:13 -0800
Upgrade fastjson version once through jgit
Background: the company where I work has experienced three fastjson upgrades. Due to the large number of clusters and projects, each upgrade is very troublesome. So we developed a java upgrade tool.
Function introduction:
Function introduction: a jar file, through the Java jar command, enter the user name, password, and the main directory of ...
Posted by bhola on Tue, 19 Nov 2019 06:29:26 -0800
Java Web Learning Servlet series 18 HttpServletRequest object get request message line related methods
In the previous section, I introduced the HttpServletResponse object and common methods. This section started to learn the HttpServletRequest object and related methods. Like the previous section, I couldn't learn the methods of operating the request message line, request message header and request body. This article is to lear ...
Posted by vito336 on Sun, 10 Nov 2019 09:29:49 -0800