• Serialization / deserialization, I’ve endured you for a long time


    The GitHub open source project: github.com/hansonwang99/javacollection has been included in this article. There are detailed self-study programming learning routes, interview questions and experience, programming materials and a series of technical articles. The resources are constantly updated Tool man Once upon a time, the understanding of Java serialization remained in “implementation”Serializbale“Interface” is not ready until So […]

  • RFC: Extensible UDT


    Extensible UDT (extensible UDT, uniformly called XUDT in this paper) is an extension based on simple UDT, which can be used to define the behavior that more UDTs may need. Sudt provides a basic core for issuing UDT on nervos CKB, while XUDT can be based on sudt to meet more potential needs, such as […]

  • What causes the CPU usage of Java applications to soar?


    problem Will infinite loop while cause CPU utilization to soar?Will frequent use of young GC lead to soaring CPU utilization?Is CPU usage high for applications with a large number of threads?What is the number of threads in applications with high CPU utilization?Will threads in blocked state cause CPU utilization to soar?Is CPU consumption us or […]

  • With the release of. Net 5, will this Microsoft “family bucket” be the spring of. Net?


    With the pace of full open source, Microsoft has gradually kept pace. As one of the earliest important software for Microsoft to move towards open source, the release of. Net 5 is of great significance to Microsoft and its users. Microsoft’s future goal is to integrate all. Net components into one product, and then users […]

  • Solve the server process exit problem (Metaspace overflow)


    phenomenon The planning response server can’t get in. After a remote look, the process crashes. Sometimes it can log in but can’t execute the operation (the process is still there). It can’t be shut down normally. It appears in the process root directoryjava_pid16298.hprofWhen I saw the file, it was a memory overflow. I was surprised […]

  • Simple application of redis


    Spring boot integrates redis //Import dependency <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> //File configuration spring: redis: host: port: 6379 password: root //Write your own redistemplate package com.shuaikb.config; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.PropertyAccessor; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer; @Configuration public class RedisConfig { @Bean public RedisTemplate<String, Object> […]

  • What does serialVersionUID do?


    Sometimes when we write code, if we don’t write a class that needs serializationserialVersionUID, the compiler may prompt usThe serializable class ClassName does not declare a static final serialVersionUID field of type long。 Students who have used the mybatis plus framework should also find that when using reverse code generation, the generated entity classes also […]

  • Protobuf simple type direct deserialization method


    I have an idea. It’s perfect to have a high-performance data protocol specification that can cross platform, enable data to be read between two different programs, and preferably support direct serialization of objects. target Supports arbitrary object serialization Support from similarSystem.StringGet the class information from the string of and deserialize it Support direct serialization and […]

  • The. Net core handles webapi JSON and returns annoying null and empty


    preface In project development, annoying nulls will be encountered in both the foreground and background. If the fields in the database table allow null values, the corresponding field type in the code entity class is nullable < >, such as int?, DateTime?, The values returned from the serialization of null value fields are null. The […]

  • How to use session in asp.net core


    Asp.net core is a cross platform, open source, lightweight, high-performance and highly modular web framework. Session can store user information, so as to realize user tracking between multiple requests of the same client. It can be used in asp.net coreMicrosoft.AspNetCore.SessionMiddleware to enable the session mechanism. The value of middleware is that it canrequest -> responseDo […]

  • Won 1.2k star in a month and claimed to be “the fastest C language JSON library”


    [introduction]: the C language JSON Library in accordance with ANSI standard is designed to make better use of modern CPU and pursue ultimate efficiency. brief introduction Yyjson is a high-performance JSON library developed in C language, which can make better use of the performance of modern CPU, so as to make the serialization and deserialization […]

  • What’s wrong with the go language’s native JSON package? How to better handle JSON data?


    Go “players” may be confused when they see this topic – for JSON, go native libraryencoding/jsonIt has provided a sufficiently comfortable JSON processing tool, which is widely praised by go developers. What else is wrong with it? However, in fact, in the process of business development, we have encountered many native problemsjsonThe problem that we […]