SpringBoot Integrated JWT Implements Permission Authentication
Catalog
1. JWT Certification Process
2. SpringBoot Integration JWT
3. Testing
Last article One Minute to Learn about JWT Certification!" The composition and authentication principle of JWT are introduced. This paper will introduce the process of integrating JWT with SpringBoot to achieve authe ...
Posted by capella07 on Thu, 07 Nov 2019 18:11:25 -0800
5. Summary of Starter Programs for SpringMVC
Summary of Getting Started Program Configuration
Front End Controller Configuration:
First: *.action, access ends with.action and is resolved by Dispatcher Servlet
Second: /, all addresses accessed are resolved by Dispatcher Servlets, which configure Dispatcher Servlets not to resolve static files to implement RESTful-style URLs
Processor Map ...
Posted by waseembari1985 on Thu, 07 Nov 2019 08:35:58 -0800
$ref: problem in converting object to json data in springmvc
Today, when writing code, some data was found to be scrambled during request fetching, as shown in the figure
Entity class A
public class BaseItems{
private Integer id;
//Other attributes omitted
private Set<BasePolicy> policys;
}
Entity class B
public class BasePolicy implements java.io.Serializable {
private Long id;
...
Posted by 9three on Wed, 06 Nov 2019 14:03:02 -0800
The parameter binding of basic application of springboot2 can correctly understand the scope of content type
Content type understanding
http protocol is an application layer protocol based on tcp/ip protocol, which consists of three parts: status line, header information and message body. The corresponding http request is: request line, request header, request body.
The content type is in the request header. Generally, the server will obtain how the ...
Posted by tisource on Wed, 06 Nov 2019 09:29:31 -0800
springboot -- integrating logs
Catalog
Summary
1. Market log framework and log abstraction layer classes
2. Spring boot default logging
3, summary
Summary
When we are developing projects, we usually want to know how the program is running. We can use sysout.print(); print some key code or view the running status through debug, but for this kind of sysout.print(); currentl ...
Posted by hermzz on Wed, 06 Nov 2019 04:41:48 -0800
ApiBoot Logging uses RestTemplate to transparently transmit link information
In the last article[ ApiBoot Logging uses spring cloud openfeign to transmit link information ]In this section, we explained in detail how to integrate spring cloud with ApiBoot Logging to transmit link information through Openfeign, including traceId (link number), parentSpanId (superior unit number) and other information.
ApiBoot Logging can ...
Posted by Tracer on Wed, 06 Nov 2019 02:53:09 -0800
ApiBoot Logging uses spring cloud openfeign to transmit link information
ApiBoot Logging can seamlessly integrate spring cloud to collect request logs. Currently, it supports RestTemplate and Openfeign. In this chapter, we will explain whether the request logs of a link that requests mutual calls between services can be collected by using Openfeign.
Original blog address: http://blog.yuqiyu.com/apiboot-logging-using ...
Posted by exponder on Tue, 05 Nov 2019 23:12:44 -0800
Using jQuery to implement Ajax
Using jQuery to implement Ajax
JQuery encapsulates Ajax operations. In jQuery, the lowest level method is $. ajax(), the second level is load(),$.get(),$.post(), and the third level is $. getScript() and $. getJSON()
load() method:
-- the load() method is the most simple and commonly used Ajax method in jQuery. It can load remote HTML cod ...
Posted by s2j1j1b0 on Tue, 05 Nov 2019 11:40:43 -0800
Spring boot integrates mybatis and precautions
Main steps
Add dependency on mybatis
Configure data source information in the configuration file
Write the mapping file of the pojo mapper interface maper
Manually configure package scanning of mybatis
Add @ MapperScan to the main startup class
1: import dependency
<dependency>
<groupId>org.mybatis.spring.boot</groupId> ...
Posted by royalsolo on Tue, 05 Nov 2019 06:58:16 -0800
Implementing wechat payment in Java
I. business requirements
To implement app wechat payment, the backend needs to generate advance payment documents and respond to the payment results.
II. Business process
View official documents
https://pay.weixin.qq.com/wik...;
III. implementation method
3.1 create the wechat tool class ConstantUtil[Java] plain text view copy code?
public ...
Posted by Goon on Tue, 05 Nov 2019 06:29:25 -0800