2. SpringMVC non-annotated processor mappers and adapters

Non-annotated processor mapper <!-- To configure Handler --> <bean id="itemsController" name="/queryItems.action" class="com.iot.ssm.controller.ItemsController"/> <!-- Processor Mapper //Finding the name of a bean as a URL requires specifying the bean name (that is, the url) when configuring the Handler --> <bean class="or ...

Posted by kornlord283 on Thu, 07 Nov 2019 13:42:06 -0800

Install Docker on CentOS7. The installation is successful. Error is reported when starting

The steps to install Docker on CentOs7 are as follows: First, we need to check the version, because the installation of Docker kernel on linux must be above 3.0 uname -r Install docker yum install docker You will be prompted to enter y to continue during installation After installation, you can check the version of ...

Posted by Design on Thu, 07 Nov 2019 13:17:17 -0800

Spring Security Actual Dry Goods: Using JWT Certified Access Interface

1. Preface Welcome to Read Spring Security Actual Dry Series .Previously, I explained how to write my own Jwt generator and how to return to Json Web Token after user authentication has passed.Today we'll look at how to use Jwt access authentication in requests.The DEMO get method is at the end. 2. Common Http authentication methods To use Jwt ...

Posted by rklapwijk on Thu, 07 Nov 2019 12:52:41 -0800

Graphx processing janusGraph data implementation

Declarations: This scheme is an alternative in case the implementation of gremlinSQL scheme is blocked by spark's direct execution. It does not involve working secrets, there is no possibility of leaking secrets, it is purely personal reflection, and I hope to make a contribution Scheme: Converts the query result of gremlinSql to startGraph, th ...

Posted by lovelys on Thu, 07 Nov 2019 09:49:15 -0800

java sends http, https requests

Using tools-httpclient, HTTP/HTTPS requests can be sent quickly in a project. Currently, four common requests, POST.GET.DELETE.PUT, are supported, and POST is supported to use JSON parameters. How to use the project: Add dependencies: <dependency> <groupId>cn.gjing</groupId> <artifactId>tools-httpclient</artif ...

Posted by telvitajoel on Thu, 07 Nov 2019 08:57:51 -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

PHP dynamically hides API fields in Laravel

I recently saw a problem in the Laravel Brasil community that turned out to be more interesting than it seemed.Imagine that you have a UsersResource implemented with the following: 1 <?php 2 namespace App\Http\Resources; 3 use Illuminate\Http\Resources\Json\Resource; 4 class UsersResource extends Resource 5 { 6 /** 7 * Transform the ...

Posted by ozzysworld on Thu, 07 Nov 2019 05:49:54 -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

Spring Security combat dry goods: custom exception handling

1. Preface It's really busy these days. It's hard to find time to continue to improve Spring Security practical dry goods series . Today, Spring Security needs to handle the authentication and authorization exceptions in the project, so share it. 2. Exceptions in spring security There are two main types of exceptions in Spring Security: one i ...

Posted by varun8211 on Wed, 06 Nov 2019 10:28:13 -0800

The columns of TopJUI editable table determine whether to use combobox or numberbox according to the returned data

In the past two days, I have studied the editable table edatagrid of topjui. I want to judge whether to use combobox or numberbox according to the returned data at the back of each column. During this period, I encountered some pits. The following implementation code can be used for reference by friends who need it. json data               ...

Posted by gutogouveia on Wed, 06 Nov 2019 09:47:01 -0800