Multi file upload and download: transfer as hexadecimal string

1. Preface Recently, we are maintaining an old Web project, which uses DWR 2.0 (a remote communication framework that can call Java methods in js). Now we need to use this framework to upload files to and download files from the server. However, DWR 2.0 used in this project only supports calling Java methods with basic data types, String, List, ...

Posted by Fakcon on Mon, 02 Dec 2019 05:36:35 -0800

Java Arabic numeral to Chinese expression

In the interview, the algorithm problem is to translate Arabic numerals into Chinese characters. For example, 123 is 123, 10080 is 1080 I tried to implement it myself. I found that the implementation was too cumbersome, there were too many codes, and there were places I couldn't think about easily. I posted my own writing method ...

Posted by Edwin Okli on Mon, 02 Dec 2019 04:57:16 -0800

About the use of gson Library

The communication carrier between different programs, using json is a more convenient format, of course, the advantages of this format can be found at night, if speaking of the disadvantages, it may be all string transmission, the efficiency is not so high, but for general development programs, especially for Internet programs, more than enoug ...

Posted by jimmyborofan on Mon, 02 Dec 2019 03:16:30 -0800

Enhanced Fibonacci function Tribonacci

It's nice to meet the bigger brother of Fibonacci, AKA Tribonacci. It is basically like Fibonacci, but the last three (rather than two) numbers of the sequence are combined to generate the next one. So, if we want to start our Tribonacci sequence with the start [1, 1, 1] input, we have the following sequence: [1, 1 ,1, 3, 5, 9, 17, 31, ...] W ...

Posted by AcidRain on Mon, 02 Dec 2019 02:13:17 -0800

spring boot cross domain problem

Cross domain refers to mutual access between different domain names. Cross domain means that the browser cannot execute scripts of other websites. It is caused by the browser's homology policy, and it is the browser's security restrictions on JavaScript. That is to say, if we want to use Ajax to get specific content in site B in site A, if site ...

Posted by andrewmay67 on Mon, 02 Dec 2019 01:27:24 -0800

flowable new rejection method ChangeActivityStateBuilder

6.4.0 added the rejection method, which is really a good news for Chinese process. Thank the founder of flowable. Don't worry about the rejection process anymore. Those videos and source code changes on the Internet are really demo level and can't be used commercially. Only the study of heart like water is the eternal generator. Don't imagine ...

Posted by rayden on Mon, 02 Dec 2019 00:17:25 -0800

Introduction to IOC annotation development of Spring 1

The basic knowledge points are as follows: Introduce annotation constraints and configure component scanning Annotation on class: @ response @ Controller @Service @Repository Annotation @ value of common attribute Annotation @ Resource @ Autowired @ Qualifier for object properties Bean life cycle, initialization and destruction: @ PostConstruc ...

Posted by sanand158 on Sun, 01 Dec 2019 20:13:59 -0800

The internal structure of HashMap analysis

Preface This paper is based on the analysis of HashMap in Java 8. It mainly introduces the use of member variables and class variables in HashMap, and analyzes the data structure of HashMap. Variable analysis There are multiple member variables and class variables in the HashMap. It is helpful for us to have a better understanding of their purp ...

Posted by konn on Sun, 01 Dec 2019 18:39:38 -0800

SpringBoot modify startup log output

Create the banner.txt file in the src/main/resources directory of the project, and the startup output of SpringBoot will be changed Buddha log ${AnsiColor.BRIGHT_YELLOW} ${AnsiColor.BRIGHT_RED}_ooOoo_${AnsiColor.BRIGHT_YELLOW} ${AnsiColor.BRIGHT_RED}o8888888o${AnsiColor.BRIGHT_YELLOW} ${An ...

Posted by avatar.alex on Sun, 01 Dec 2019 18:12:30 -0800

Singleton pattern of design pattern and thread safety

Preface The single case model can be divided into "hungry man model" and "lazy man model". Let's talk about singleton mode today, especially in multithreading. Starving model class Singleton{ private static Singleton singleton = new Singleton(); private Singleton(){} public static Singleton getInstance(){ ...

Posted by svivian on Sun, 01 Dec 2019 15:45:16 -0800