How to quickly view the IP address and other information of the login user in Spring Security?

Last article I've talked about how to use a more elegant way to customize Spring Security login logic. A more elegant way can effectively avoid the inefficiency brought by custom filters. I suggest you read it and understand the authentication logic in Spring Security by the way. Based on the above, this paper will continue to discuss with you ...

Added by jimjack145 on Wed, 06 May 2020 11:21:22 +0300

18 examples take you to master Java 8 date time processing!

Author: Pang xiansen https://juejin.im/post/5a795bad6fb9a0634f407ae5 Java 8 introduces a new date time API. In the tutorial, we will learn how to use the new API through some simple examples. The way Java deals with date, calendar and time has always been criticized by the community. Setting java.util.Date as a variable type and the non thre ...

Added by matthewc on Wed, 06 May 2020 08:54:37 +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

International multilingual configuration

The static multilingual configuration file is placed in the Resource Bundle under the resources directory and configured in the form of key=value For example, in Chinese: messages ABCD cn.properties Property1 = property1 Property2 = property2 English: property1=property one property2=property two Configuration Internationalization: @Con ...

Added by ron814 on Tue, 05 May 2020 22:44:36 +0300

Spring transaction management [Focus]

Spring transaction management Commit and rollback transactions to spring   1, Brief introduction In Java EE development, transactions are in the Service layer, Judged by the program: in case of abnormal transaction rollback, no abnormal transaction commit occurs. Spring uses AOP technology for transaction control, and helps developers t ...

Added by fredroines on Tue, 05 May 2020 21:50:16 +0300

How spring AOP generates proxy objects

The framework is to leave the complex to itself, the simple to coden, as simple as writing hello world When developing Spring AOP programs in the early years, aop was configured with xml files (now xml is not popular, annotation @ EnableAspectJAutoProxy is popular), and then framework parsing, For example: How is this configuration resolved, ...

Added by Gaia on Tue, 05 May 2020 11:14:38 +0300

Spring boot built-in life cycle event details spring boot source code

Github address of spring boot Chinese annotation project: https://github.com/yuanmabiji/spring-boot-2.1.0.RELEASE Continued Spring boot event monitoring mechanism source code analysis (I) spring boot source code (IX) Learn from the past Let's review the content of the previous article briefly. In the previous article, we analyzed the principle ...

Added by bonzie on Tue, 05 May 2020 11:05:49 +0300

Use of Spring JDBC

Spring's JDBC module is responsible for database resource management and error handling, which greatly simplifies the operation of the database by the developers, so that the developers can get rid of the tedious database operation, so as to put more energy into writing business logic. For the Spring framework of database operation, the JdbcTem ...

Added by twilitegxa on Tue, 05 May 2020 09:44:21 +0300

The process of integrating ActiveMQ with Spring Boot

Install the ActiveMQ server, (or not, if not, use memory mq) To build a Spring boot project and add dependencies, just add this one <!-- Add to acitivemq rely on --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </dependency> A ...

Added by dspeer on Sun, 03 May 2020 07:28:24 +0300

Spring boot (9): spring boot uses Druid data source

Druid is a database connection pool implementation on Alibaba open source platform. It combines the advantages of C3P0, DBCP, PROXOOL and other DB pools, and adds log monitoring. It can monitor the connection of DB pool and the execution of SQL. It can be said that Druid is a DB connectio ...

Added by hpg4815 on Sun, 03 May 2020 00:27:55 +0300