Using @ controlleradvce and ErrorController interfaces in springMvc

Using @ controlleradvce and ErrorController interfaces in springMvc 1, Introduction aop can be used for global processing in spring MVC. Here we introduce another way, with the help of springMvc's controlleradvce annotation and ErrorController interface. 2, ControllerAdvice annotation @Controllera ...

Posted on Mon, 29 Jun 2020 05:25:47 -0400 by lowspeed

Spring cloud Part 3: service provision and Feign call

In the previous article, we introduced the construction of the registration center, including that of the cluster environment. This article introduces how to use the registration center, create a service provider, and use a simple client to call the services provided by the server. In this article, there are three roles: service provider, servi ...

Posted on Sun, 28 Jun 2020 00:34:28 -0400 by Hokus

AJAX_ Introduction & classic cases

AJAX_ Introduction & classic cases Getting started with AJAX AJAX introduction AJAX(Asynchronous JavaScript And XML): asynchronous JavaScript and XML. It is not a new technology in itself, but a combination of multiple technologies. Technology for quickly creating dynamic web pages. If you ne ...

Posted on Sat, 27 Jun 2020 22:50:27 -0400 by Strikebf

Beauty of Mybatis source code: 2.13. Parse the databaseIdProvider element and configure the database type unique flag generator

Parse the databaseIdProvider element and configure the database type unique flag generator An interface named DatabaseIdProvider is defined in mybatis. The function of this interface is to obtain the unique flag of different data sources in mybatis. DatabaseIdProvider defines two methods, setProperties() method is used to configure custom prope ...

Posted on Sat, 27 Jun 2020 02:10:05 -0400 by PHPoracle

Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available

org.apache.tomcat.jdbc.pool.ConnectionPool View source code private PooledConnection borrowConnection(int wait, String username, String password) throws SQLException { if (isClosed()) { throw new SQLException("Connection pool closed."); } //end if //get the curr ...

Posted on Fri, 26 Jun 2020 03:29:04 -0400 by callmecheez

Deep understanding of mybatis L2 cache

Deep understanding of mybatis L2 cache In our daily projects, we often don't choose to use MyBatis's second level cache, because when you are not familiar with the second level cache. Because improper use can easily cause dirty reads, let's take a look at the slot points and highlights of L2 cache. F ...

Posted on Fri, 26 Jun 2020 00:49:48 -0400 by ryanbutler

ActiveMQ learning note 1 - getting started

1 Introduction to ActiveMQ 1.1 support multi language and protocol convenient client. Languages: java, python, C, C + +, php, etc Application protocols: OpenWrite, Stomp REST, XMPP, AMQP, etc 1.2 support for spring; 1.3 it supports high-speed message persistence through JDBC and journal, which can b ...

Posted on Thu, 25 Jun 2020 03:32:39 -0400 by droomagon

mybatis plus pit - @ TableField(typeHandler) does not take effect when querying is null

catalog 1, Scene 2, Questions 3, Troubleshooting steps 4, Example 5, Questions 1, Scene There are often List fields in entities that need to be mapped mybatis plus provides annotation mode for direct injection. The portal: Portal - field type processor 2, Questions The addition, deletion and ...

Posted on Tue, 23 Jun 2020 05:02:38 -0400 by tckephart

Maven project uses Checkstyle to check code

Catalog Maven project uses Checkstyle to check code Configure checkstyle-IDEA plug-in in idea Configure using Checkstyle in Maven projects Single module maven project Multi-module maven project Configuration in Jenkins abnormal Reference resources Maven project uses Checkstyle to check code ...

Posted on Mon, 22 Jun 2020 22:19:38 -0400 by Trevors

Common encryption methods in Java

1, Common encryption methods in Java Base64 encryption algorithm (encoding method) MD5 encryption (message digest algorithm, verifying information integrity) Symmetric encryption algorithm Asymmetric encryption algorithm Digital signature algorithm digital certificate 2, Classification According to w ...

Posted on Sun, 21 Jun 2020 23:47:32 -0400 by cwheel3915