Spring boot integrates Shiro and simple implementation
Spring boot integrates Shiro and simple implementation
Create a SpringBoot project
Add dependency
Configure Shiro (key)
Configure login logic
Configuration authorization
Create a SpringBoot project
Create a little
Add dependency
1. Add thymeleaf
<!-- thymeleaf Dependent dependence -->
<dependency>
<g ...
Posted by lizard on Tue, 26 Nov 2019 16:33:35 +0100
Python urllib practical methods, properties, process summary
I. urllib, urllib2, urllib3, requests
In the python 2 of the urlib2 room, python 3 merges urllib and urllib2 into the urllib directory, so Python 3 directly uses urllib.
urllib3 is a tripartite library, which provides functions such as connection pool, client SSL/TLS authentication, file code upload, HTTP redirection, gzip and deflate compres ...
Posted by jakebrewer1 on Tue, 26 Nov 2019 12:51:36 +0100
Unfortunately, Spring Bean initialization / destruction has so many postures
Source: http://1t.click/bfHN
I. Preface
The daily development process sometimes needs to load some resources after the application is started, or release resources before the application is closed. The spring framework provides related functions. Around the Spring Bean life cycle, you can initialize resources in the Bean creation process and ...
Posted by Gnub on Mon, 25 Nov 2019 20:17:54 +0100
Get the time of the previous day and the next day in Java
Today, when developing a project, we encounter a problem that is how to get the day before and the day after the current time. The logic of this implementation is not complicated, and it is not difficult to write by yourself, but it seems that there is no need to write such a method by yourself. Think about the C ...
Posted by sergio-pro on Mon, 25 Nov 2019 19:00:44 +0100
Talk about springboot jet autoconfigure
order
This paper focuses on springboot jet autoconfigure
JestProperties
spring-boot-autoconfigure-2.1.4.RELEASE-sources.jar!/org/springframework/boot/autoconfigure/elasticsearch/jest/JestProperties.java
@ConfigurationProperties(prefix = "spring.elasticsearch.jest")
public class JestProperties {
/**
* Comma-separated list of the Elasticsearc ...
Posted by TheKiller on Mon, 25 Nov 2019 16:19:44 +0100
The tools that come to mind from a continuous GC and take a long time - jvmkill and jvmquake
Recently, a strange problem occurred in a query microservice online. The number of GCs suddenly increased, and the time consumption of GC also increased. It's not always the problem, but it's reported every other time.
View jstat -gcutils 10000:
Similar to the following:
S0 S1 E O M CCS YGC YGCT FGC FGCT G ...
Posted by d1223m on Mon, 25 Nov 2019 10:49:12 +0100
Integrating Spring and Spring MVC
1. The relationship between spring container and spring MVC container
Spring container is a parent container, and spring MVC container is a child container, which inherits from spring container. Therefore, in the spring MVC container, you can access the beans defined in the spring container, while in the spring container, you cannot access the ...
Posted by jfugate on Sun, 24 Nov 2019 15:36:31 +0100
Design mode 11: enjoy element mode [structural mode]
In the process of object-oriented programming, we sometimes face the problem of creating a large number of instances of the same or similar objects. Creating so many objects will consume a lot of system resources, which is a bottleneck of improving system performance. For example, black and white pieces in go and Gobang, coordinate points or co ...
Posted by jlhaslip on Sun, 24 Nov 2019 12:49:24 +0100
golang network programming Middleware
golang_real.jpg
Share beforeGorang network programming (5) middleware
By learning to write two interceptors by ourselves, output log and simple permission verification. This is what we usually do in middleware. In fact, many times we don't need to do too much by ourselves. Do we still need to grow, bake and grind if we want t ...
Posted by S_henry on Sat, 23 Nov 2019 19:07:21 +0100
PyQt5: layout, push button, radiobutton, lableImage basic usage of setting picture
Design sketch:
Navigation:
Horizontal layout
Grid layout
Vertical layout
Set up pictures with lable
The use of radiobutton
1 horizontal layout
First of all, we created a QGroupBox and put three buttons in this component
self.groupBox = QGroupBox('there are some buttons')
Then create a horizontal layout object
hbox ...
Posted by kida462 on Sat, 23 Nov 2019 18:38:12 +0100