Spring02_XML-based IOC

For the source code of this tutorial, please visit: tutorial_demo In the previous tutorial, we learned how to use factory mode decoupling to give the creation of objects to a custom factory class by a programmer. In this tutorial, we will learn how to use Spring's IOC to solve coupling problems. 1. What is IOC IOC: Inversion of Control, contr ...

Posted by TCovert on Sun, 24 May 2020 10:48:08 -0700

New feature of JDK9: xlog of JVM

brief introduction In java programs, we use logs to locate and discover potential problems in our projects.In modern java projects, we use logging frameworks such as log4j or slf4j, Logback, and so on to handle logging issues. JVM is the basis of running java programs. Events in JVM such as GC, class loading, JPMS, heap, threads and so on can a ...

Posted by littlejones on Fri, 22 May 2020 16:54:30 -0700

Tomcat CAS (single sign on) version 5.2x configuration database access - yellow Tong

The 5.2 version of CAS single sign on is really a big change. I came up with it after reading a lot of data. The general steps of configuration and the steps of configuring CAS and database are as follows: 1. Copying jar package, 2. Configuring application.properties Database configuration access, 3. Establish database data Preparation be ...

Posted by alivec on Fri, 22 May 2020 09:13:14 -0700

Spring boot from scratch integrates spring data JPA to realize simple application

This paper introduces the simple application of spring boot integrating spring data JPA What is spring data jpa? We can't help thinking about it. In fact, spring data jpa uses hibernate by default and spring data jpa technology, which implements the template Dao layer. It only needs to inherit an interface in Dao to easily complete "add, d ...

Posted by k4pil on Fri, 22 May 2020 02:53:32 -0700

Swagger permission control part 2: Implementation Based on Spring Security

>Following the previous article "Apache Shiro takes over the authentication and authorization of Swagger", some enthusiastic netizens said that Apache Shiro seems too simple. In response to this problem, the individual does not make any evaluation (all technologies serve the needs). Today's main share is: how to take over the authe ...

Posted by Chrisinsd on Fri, 22 May 2020 00:13:44 -0700

Spring Boot 2.0 implementation of file upload and download APIs based on Restful style

>File upload and download is a common function in Web application. In this tutorial, I will implement a Restful style file upload and download APIs based on Spring 2.2.6. > >Based on the Spring Boot 2.0 actual combat series source code, it has been pushed to Github warehouse: https://github.com/ramostear/springboot2.0-action . Welcom ...

Posted by mattd123 on Fri, 22 May 2020 00:06:33 -0700

Spring MVC advanced - how to use interceptors correctly? Case explanation

Spring MVC: interceptor Implemented the HandlerInterceptor interface. Function: used to intercept the controller   2, Define an interceptor 1. Environment construction @Component public class Demo1Interceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, ...

Posted by emma57573 on Wed, 20 May 2020 23:03:42 -0700

Spring Boot Tutorial - HelloWorld

1. Origin of Spring Boot As we all know, the Spring Framework is a very important and lightweight framework in the Java ecology, helping our broad masses of big guys develop Java.The Spring Framework has evolved very rapidly, from the very beginning of the Spring core container that helped us manage Java objects to the various business issues t ...

Posted by frostyhorse on Tue, 19 May 2020 09:50:29 -0700

Haven't you built and used Maven Nexus private library?

Why use private library By default, maven goes to the remote central warehouse to download the JAR package. It's quite slow to visit the foreign network. If everyone in the team downloads the JAR package once, it's undoubtedly a waste of the network. Of course, it can also add the domestic image, such as Ali's, which is relatively stable. But ...

Posted by DeadEvil on Tue, 19 May 2020 03:20:28 -0700

Integrating sharding JDBC to realize data desensitization in JPA project

introduction In the previous blog post, the database desensitization scenario and scheme have been completely introduced. The sharding JDBC open source project from Jingdong Digital Technology Co., Ltd. has realized this function transparently through the way of data source intermediate agent. However, although the function has been realized, ...

Posted by rocksolidsr on Mon, 18 May 2020 20:31:28 -0700