[utils] get EnumUtil tool class of enumeration through a field value in enumeration

Sometimes, in this case, we have the value of one of the enumeration fields, and then get the information of enumeration or other fields through this value. If there is no tool class, we need to add corresponding methods to each enumeration. Through the method of tool class, we can reduce the code generation and make it more concise and bea ...

Added by jashankoshal on Sun, 10 May 2020 17:43:36 +0300

Applicant Ali, byte beating, Spring IOC and factory mode that Meituan must master

Spring IOC and Factory Mode PS: The content of this article is hard core, which requires a better understanding of java's object-oriented, reflection, class loader, generics, properties, XML and other basic knowledge. (1) Brief introduction Before talking about Spring IOC, it's necessary to talk about Factory Pattern.Factory mode separates the ...

Added by edkellett on Fri, 08 May 2020 20:56:05 +0300

Popular understanding of spring source code -- parsing and registering bean definitions

Popular understanding of spring source code (5) -- parsing and registering bean definitions Last section talked about how to get document. After converting the document to document, the next extraction and registration bean is our play. protected int doLoadBeanDefinitions(InputSource inputSource, Resource resource) throws Bea ...

Added by TEENFRONT on Wed, 06 May 2020 00:53:03 +0300

node simply implements a function of changing the head image

Preface I've always wanted to write this article, but I've been reviewing it for the sake of exams. I've delayed writing until now. I wrote a small project with node's express framework, which has the function of uploading pictures. Here's how to realize it (I use ejs) thinking First of all, when the user clicks upload avatar to upd ...

Added by jmugambi on Mon, 04 May 2020 23:15:52 +0300

ios trust server certificate

When we use https to make network requests, we will receive the certificates from the server. These certificates are divided into agency certificates and certificates issued by ourselves. In ios, if we are going to request an organization certified to send an https request, we don't need to process it. But if it is a self signed certificate, we ...

Added by svihas on Mon, 04 May 2020 19:46:49 +0300

Response object of Servlet

Response object Function: set response message Set response line Format: HTTP/1.1 200 ok Set status code: setStatus (int sc) Set response header: setHeader (String name, String value) Set response body Use steps Get output stream Character output: PrintWrite getWriter() Byte output stream: ServletOutputStream getoutputstream() Output ...

Added by SoaringUSAEagle on Sun, 03 May 2020 16:18:35 +0300

Android advanced way: setting and monitoring in the lower right corner of the soft keyboard

In the project, you may encounter the need to modify the button at the bottom right corner of the soft keyboard. Although you have written it several times, you still feel relieved to concentrate on taking notes here. Effect : Note (key points): Xml medium 1. Confirm the function display keyboard in the lower rig ...

Added by texmansru47 on Sun, 03 May 2020 13:58:44 +0300

String and its code conversion in C ා

About character encoding and how to deal with unicode in the program, I want to write an article to summarize and study, but I find that what has been discussed by predecessors is very perfect, no longer repeated, you can refer to: http://www.regexlab.com/zh/encoding.htm. In C + +, characters can be divided into char and wchar. Corresponding ...

Added by gordonrp on Sun, 03 May 2020 08:57:57 +0300

Asp.net MVC simple implementation generate Excel and download

Due to the requirements on the project, you need to export the Excel file with the specified conditions. After a rummage, it finally came true. Now post the code and share it (directly share the code of some auxiliary classes in our project)   Our project uses Asp.Net MVC4.0 mode. Each ActionResult must return a View or Json, etc. (the paramete ...

Added by busterbry on Sun, 03 May 2020 03:07:20 +0300

android realizes the function of manual signature after consumption of UnionPay card machine

A few days ago, I went to the property management office to pay the property fee. The property management staff said that the community introduced high-tech products. After using the bank card for consumption, I didn't need to sign on the UnionPay machine with a pen. I directly touched with my finger to sign the consumption. At that time, I tho ...

Added by steviewdr on Sat, 02 May 2020 12:26:48 +0300