Dynamic agents you have to learn
Dynamic agents you have to learn
Background of problem
What are the problems?
Solution
Mode explanation
New problems
Principle of dynamic agent
Related development
Background of problem
As a senior single dog, Xiaoqiang has finally ushered in her own spring. Under his relentless pursuit, Xiao Li ...
Posted by tsabar on Wed, 12 Feb 2020 04:38:18 -0800
[JAVA programming] JAVA assist summary
Javaassist reference manual
1. Read and output bytecode
2. New Class
3. Freeze Class
4. Class search path
5,ClassPool
6,Class loader
7. Introduction and customization
8. Modify method body
9 add a new method or field
10 notes
11 javassist.runtime
12 import
1. Read and output bytecode
ClassPool ...
Posted by erupt on Tue, 11 Feb 2020 22:05:12 -0800
Take a quick look at jdk8
You've been watching java concurrently and you've been saying a bit too much. Just relax!This time, let's briefly talk about jdk8, which has not been used for a long time and is new to us. It's interesting to look at it carefully. Let's turn our brain into an angle to write code. Because we usually write code in jdk7 now, we are all thinking ab ...
Posted by Xephon on Tue, 11 Feb 2020 10:42:17 -0800
Pit log (asynchronous thread disappears abnormally & RequestContextHolder)
In a spring MVC project, we can usually use the following code to obtain the HttpServletRequest object bound to the current thread:
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();
In the recent project development of the company, m ...
Posted by Chamza on Tue, 11 Feb 2020 04:40:19 -0800
Prometheus + Grafana monitoring SpringBoot
Overall structure
Spring boot's actor provides the monitoring endpoint.
Prometheus is a monitoring system, which can obtain monitoring data from spring boot, store it in the form of time series data, and provide query service for monitoring data.
Grafana is a professional UI dashboard system, which supports a lot of data sources, including Prom ...
Posted by elearnindia on Sun, 09 Feb 2020 23:22:47 -0800
Scala learning day 1: Variables
Learning objectives
Grammatical format
Define a variable in the interpreter
val and var variables
Use type inference to define variables
Lazy assignment
Grammatical format
Java variable definition
int a = 0;
In scala, you can use val or var to define variables. The syntax format is as follows: ...
Posted by thor erik on Sun, 09 Feb 2020 02:40:44 -0800
Thread safety issues
In the previous section, we mainly talked about the JVM memory model and the visibility of thread safety. This section focuses on the atomic operation of thread safety;
Competitive condition and critical region
Code example
public class IncrDemo {
public int i = 0;
public void incr() {
...
Posted by kingconnections on Fri, 07 Feb 2020 06:15:14 -0800
Java reflection -- Reflection and class operation
Content learned in: edu.aliyun.com
1. Reflection acquisition class structure
.
if you suddenly find that you need ...
Posted by osram on Thu, 06 Feb 2020 05:25:58 -0800
Brush Title: skills learned by a new JAVA player
Recently, I was brushing some questions of PAT with algorithm notes, and I was going to take a CSP test with JAVA. I found that there are not many JAVA players in algorithm questions, and there are few online guides for JAVA players, so I sorted out some skills I found and learned these days
If you have ...
Posted by mrfruits on Thu, 06 Feb 2020 04:58:28 -0800
Exception handling of spring MVC
One way
try....catch...finally, catch and handle exceptions in catch
Mode two
Set the default global exception handler.
In case of any abnormality, throw upward one by one,
In this process, if the exception is caught and handled by catch, it will be OK;
If there is no corresponding catch to catch and handle exceptions, they will be fin ...
Posted by Eric T on Sun, 02 Feb 2020 05:56:25 -0800