52SpringMVC - exception handler

The exception information in the processing of spring MVC requests is handled by the exception handler. The custom exception handler can implement the exception handling logic of a system. Abnormal handling ideas There are two types of exceptions in the system: expected exception and runtime exception. The former obtains excep ...

Posted on Fri, 29 Nov 2019 21:19:10 -0800 by khaitan_anuj

MyBatis profile user password encrypted storage

properties profile Generally, properties are used to save the contents of the configuration file, and then read them in the mybatis configuration fileCreate a new db.properties file under the resource fileThe contents are as follows # Database profile driver = com.mysql.cj.jdbc.Driver url = jdbc:mysql:// /mybatis username = password = The ...

Posted on Fri, 29 Nov 2019 12:45:15 -0800 by ungown_admin

Diagram AQS design and implementation, hand to hand with you to achieve a mutually exclusive lock!

AQS is a very important concept in concurrent programming. It is the implementation basis of many concurrent tool classes under juc package, such as CountdownLatch, CyclicBarrier, Semaphore and lock, such as ReentrantLock, ReaderWriterLock. It provides a concurrent framework based on int status code and queue. This article will briefly introduc ...

Posted on Fri, 29 Nov 2019 11:48:28 -0800 by sirTemplar

Reflection of Java Foundation

Definition: a mechanism that allows Java to obtain various properties in a specified class at runtime. (including interface, variable, method, etc.) The properties that Java reflection can obtain are: Class object Class name Construction method Packet information Get method, specify parameter of method, return type variable ...

Posted on Fri, 29 Nov 2019 10:47:36 -0800 by Baumusu

G - Numbers ZOJ - 3987 (large number + greed)

Topic link~~~~~ I can't shake the pot this time. First of all, let's talk about the meaning of the question, which is to divide a number into m groups to make their number or the smallest. Analysis: At the beginning, I thought it was too simple. It was a little preconceived. Although I thought that the average binary bit wo ...

Posted on Fri, 29 Nov 2019 10:34:37 -0800 by CaseyC1

java reading and generation of CSV file

CSV file is a comma separated value file format, which is usually opened with WORDPAD or notepad and excel. CSV (comma separated value) is a kind of plain text file used to store data. It is usually a file format used to store spreadsheets or data. It is very simple to read and generate CSV files. As long as (,) is used to cut during reading, c ...

Posted on Fri, 29 Nov 2019 10:02:38 -0800 by Mike521

Java adds tables and nested tables in Word

As a visual communication mode and a method of organizing and organizing data, tables are widely used in various occasions and documents. Common tables can contain text, pictures and other elements. When we operate tables, we can insert pictures, nest tables, write text and format table styles. Next, you will create a table in a Word document ...

Posted on Fri, 29 Nov 2019 08:18:19 -0800 by Yippee

com.alibaba.fastjson.JSONException: write javaBean error

Environmental Science Serialize the class object and convert it to json string for subsequent processing. During JSON.toJSONString, the following exception is reported, which causes the APP to crash # The Bean object is defined as follows public class AppBean implements Serializable{ private Long id; private String na ...

Posted on Fri, 29 Nov 2019 07:24:57 -0800 by hmgroen

Initial Exploration of Spring MVC and Entering the World of Spring MVC

1. Getting started with Springmvc 1.1. What is Springmvc Spring MVC is a component of Spring. Currently (2019) many Internet companies use it, which is a framework technology that needs to be learned.SpringMVC is used at the web tier and is equivalent to a controller (equivalent to the action of traditional servlet s and struts, or hendler) tha ...

Posted on Thu, 28 Nov 2019 23:58:52 -0800 by prosolutions

Explain the implementation of login authentication code function with open source software kaptcha

1. Configuration of Authentication Code Generation uses kaptcha Implement class library kaptcha using google open source validation code, introduced by maven coordinates <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> <exclusio ...

Posted on Thu, 28 Nov 2019 21:44:36 -0800 by Adrianphp