Simple use of a beautiful Toast third-party library
I used to use the Android native Toast. I feel that there is no need to work hard on it. When I saw the Toast, it was immediately circled. It's really beautiful.
Project address
As we all know, the usage of Android native Toast is
1 Toast.makeText(MainActivity.this,"Toast show contents",Toast.LENGTH_SHORT).show();
Method is divided into Co ...
Posted by CoreyR on Thu, 09 Jan 2020 06:00:45 -0800
Step by step to teach you how to realize Alibaba's Sophix hot fix (I) configure Sophix information
1.0 integration preparation
The gradle remote warehouse depends on. Open the project and find the build.gradle file of the app. Add the following configuration:
Add maven warehouse address:
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/repositories/releases"
}
}
Add grad ...
Posted by rohanm02 on Tue, 07 Jan 2020 04:55:49 -0800
Agent mechanism of spring boot project [1]
This is the first article to understand the Spring proxy mechanism, trying to understand how Spring implements Bean registration and proxy. This article will raise the question: will Spring register beans and create proxy objects with Jdk proxy or cglib?
1 project preparation
1.1 create a Spring Boot project
Create a Spring Boot project that ...
Posted by mrfritz379 on Tue, 07 Jan 2020 03:22:55 -0800
Spring boot package separate jar deployment
First of all, a question is raised. Why do we separate the jar package?
The reason is very simple. The jar files that we use the spring boot maven plugin plug-in to package are usually large, or tens of meters less. If the external network transmission of the upload cloud server is slow, why the files will be large after packaging? This is bec ...
Posted by rocram16 on Mon, 06 Jan 2020 04:05:12 -0800
There is no Maven Dependencies solution for projects in Eclipse
The Maven project in Eclipse should have a library called Maven Dependencies, as follows:
In the Configure Build Path interface, Maven Dependencies:
Sometimes the library disappears. It's useless to click Add Library in the Configure Build Path interface. I tried several times and failed to add it
There are two correct w ...
Posted by rbrown on Sun, 05 Jan 2020 07:53:03 -0800
The use of Java micro benchmark framework JMH
After checking the usage of JMH, many blogs have to be very complicated. This step is quite simple for me
Using Intellij IDEA2018.2 as the integrated development environment, JMH version is 1.21
Note that when building a project, you must create a maven project and directly import the two jar s, jmh core and jmh generator ann ...
Posted by Wolphie on Sat, 04 Jan 2020 09:27:05 -0800
Spring boot iterative release JAR slimming configuration
By default, the plug-in spring boot Maven plugin packages the whole project into a Jar package that can run (the so-called Flat Jar), resulting in a large Jar package (usually dozens of M +). Nowadays, there are many things in iterative publishing. It will waste a lot of time to upload such a huge file every time, and sometimes there will be er ...
Posted by Steve Mellor on Fri, 03 Jan 2020 19:59:28 -0800
Spring boot uses spring retry retry mechanism
When we call an interface, we may fail for network reasons and try again successfully. This is the retry mechanism.Be careful to use retries when they are not idempotent.
tips: idempotency
Idempotency is defined in HTTP/1.1 as requesting a resource once or more should have the same result for the resource itself (except for problems such as net ...
Posted by lew14 on Fri, 03 Jan 2020 07:30:07 -0800
Using maven release plugin
In order to facilitate development, we usually use SNAPSHOT version. After stage development, we need to change SNAPSHOT to release version (such as 1.0.0.SNAPSHOT - "1.0.0) to prevent online environment from being damaged. The manual step is to delete the SNAPSHOT, then tag the code (for backup), then mvn deploy uploads the release versio ...
Posted by jbx on Thu, 02 Jan 2020 08:25:16 -0800
There is no exception in the local operation of the Spring Boot project, and an error is reported when deploying to the Linux server: java.lang.ClassNotFoundException
One background
Recently, we are using spring boot to develop project A, which introduces module B developed by small partners. It starts service locally and runs well. When it is deployed to the server, an error will be reported as soon as it runs: Caused by: java.lang.ClassNotFoundException.
Note: there are many reasons for this error, such as ...
Posted by landonmkelsey on Sun, 29 Dec 2019 00:20:28 -0800