Spring Security static resource access
There is a small hole in Spring Security, which is the problem of static resource loading.
When we inherit the WebSecurityConfigurerAdapter, we will override several methods. To set our own path to filter or some rules of permissions.
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Au ...
Posted by rafadc on Fri, 03 Jan 2020 06:55:26 -0800
Don't learn countless -- the null pointer exception reflected after Spring injection
Null pointer exception reflected after Spring injection
1. Exception description
In a unit test class, you need to test the private method in a class separately, so you want to get this method through reflection, release the private qualification, and then call it. This class injects many mappers into the Service, so an error of nu ...
Posted by AJW on Fri, 03 Jan 2020 06:40:14 -0800
Black horse customer management system (SSM)
Black horse customer management system
1 System Overview
1.1 system function introduction
The background of the system is written with SSM framework, and the front page uses the current mainstream Bootstrap and jQuery framework to complete the page information display function (for the knowledge of Bootstrap, interested readers can refer to the ...
Posted by 7khat on Thu, 02 Jan 2020 18:11:45 -0800
Solution to cross domain problem of react+spring records
react cross domain access background, default is cross domain problems, and fire arc and Google browser, cross domain problem display is not the same
Google browser is as follows:
The status here is 200, but there is no information in Response, as shown below
However, the description of this problem in fire arc browser is much clearer,
Fir ...
Posted by d-m on Thu, 02 Jan 2020 14:46:36 -0800
Spring boot configuration Servlet, Filter, Listener
Spring boot configuration Servlet, Filter, Listener
In spring boot applications, the embedded Servlet 3.0 + container will not directly use the ServletContainerInitializer and WebApplicationInitializer, that is, the Servlet, Filter and Listener configurations implemented through the above two interfaces are invalid, which is to prevent the desi ...
Posted by srikanth03565 on Thu, 02 Jan 2020 09:29:34 -0800
quartz timed task -- Job cannot inject service @Autowired automatically. The injection is null
The pit stepped by Quartz's scheduled task
Cannot inject service or @ Autowired to null
When quartz is integrated with springboot, when quartzJob is injected into redisService, null is always reported
At first, I thought it was spring that was not configured correctly. After "small degree", I knew it was quartz's configuration reas ...
Posted by jeff8j on Thu, 02 Jan 2020 07:10:37 -0800
Course handout of Java product purchase
Getting started with spring datasolr
1.1 introduction to spring data Solr
While the ability to support any programming language has great market value, the question you may be interested in is: how can I
Is Solr's application integrated into Spring? Yes, Spring Data Solr is a framework developed to facilitate the development of ...
Posted by fwegan on Thu, 02 Jan 2020 03:05:29 -0800
Spring MVC interceptor uses annotations to judge and control invalid bugs
In the beginning, the interceptor was configured as follows:
<bean id="urlMapping" class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="interceptors">
<list>
<bean class="com.moneyP2P.base.spring.interceptor.CheckLoginInterceptor"/>
<bean clas ...
Posted by DarkerAngel on Wed, 01 Jan 2020 17:26:09 -0800
springboot~hazelcast caching Middleware
Cache is coming.
In the dotnet platform, there is its own cache framework. Of course, there are many integrations in java springboot, and there are many choices for cache middleware. Redis and hazelcast are distributed cache middleware. Today, we mainly talk about the implementation of the latter.
Add dependency package
dependencies {
compi ...
Posted by Shaudh on Wed, 01 Jan 2020 11:37:00 -0800
Spring datajpa example condition paging query instance
The article refers to: https://blog.csdn.net/long476964/article/details/79677526 . This article introduces the use of the Example class.
Spring datajpa official document: https://docs.spring.io/spring-data/jpa/docs/2.0.9.RELEASE/reference/html/#query-by-example (English tycoon moves here)
spring data jpa Example condi ...
Posted by robertaccettura on Wed, 01 Jan 2020 03:45:28 -0800