Source code analysis of apache shiro framework @ RequiresPermissions

1.@RequiresPermissions usage Use annotations on the corresponding methods @RequestMapping("user/list") @RequiresPermissions("user:list") @ResponseBody public Map<String, Object> userList(QueryRequest request, User user) { return super.selectByPageNumSize(request, () -> this.userService.findUserWithDept(user, request)); } Functi ...

Posted by jamest on Thu, 31 Mar 2022 04:57:24 +0300

Android network programming -- Socket easy

Android network programming overview First, understand the following questions: 1. Android system network related API interface 1),java.net.* (standard Java interface) java.net.* Provide networking related classes, including stream, packet socket, internet protocol, common Http processing, etc. For example, create URL s, URLConnection/HTTPU ...

Posted by CircularStopSign on Thu, 31 Mar 2022 04:38:17 +0300

Android network programming of Android beginner 8

catalogue 0 environment1 objectives2. Principle of okhttp framework3 interface display4 core code 4.1 UI designNetwork installation framework4.3 use the network framework to connect the background data and display the data results in the APP 5 code warehouse6 Summary 0 environment Code writing and interface effect display in Android Stu ...

Posted by bubazoo on Thu, 31 Mar 2022 04:37:36 +0300

RPC principle, Demo demonstration, why RPC uses dynamic proxy

RPC background At present, there are few stand-alone systems. Complex systems are composed of many different services. Different services are deployed on different machines, including databases, which are also distributed storage. Inevitably, there will be a scenario where one server calls the methods of another server. For example, server a w ...

Posted by Devsense on Thu, 31 Mar 2022 02:03:42 +0300

Advanced Java -- String class and constant pool

There are two ways to create a String object: String str1 = "abcd";//First check whether there is "abcd" in the string constant pool. If not, create one, and then str1 points to the object in the string constant pool. If so, directly point str1 to "abcd"; String str2 = new String("abcd");//Create a new object in the heap St ...

Posted by susrisha on Thu, 31 Mar 2022 01:09:54 +0300

[java beginner] Shiro detailed explanation

1, Introduction to RBAC 1.1 introduction to RBAC RBAC is Role-Based Access Control. In RBAC, permissions are associated with roles, and users get the permissions of these roles by becoming members of appropriate roles. This greatly simplifies the management of permissions. In this way, the management is hierarchical and interdepend ...

Posted by pragma on Wed, 30 Mar 2022 19:12:16 +0300

Stepping on the pit - Nacos + spin gateway + Shiro to realize distributed authentication authority framework

Stepping on the pit - Nacos + spin gateway + Shiro to realize distributed authentication authority framework Creative background basic function Version DescriptionCertification Center ImplementationGateway implementationEffect presentation Simple explanation Creative background Our company belongs to the communication industry, and the pr ...

Posted by blueguitar on Wed, 30 Mar 2022 07:27:35 +0300

Super detailed Maven tutorial

What is Maven? Nowadays, we need to use many third-party class libraries to build a project. For example, writing a Web project using Spring requires the introduction of a large number of jar packages. The number of jar packages in a project often makes us stunned, and the relationship between jar packages is complex. One jar package often ref ...

Posted by waltonia on Wed, 30 Mar 2022 07:17:50 +0300

The latest hadoop cluster construction (2020)

hadoop cluster construction 1, Machine preparation2, Install JDK3, Configure ssh password free login4, Establish the mapping between host name and ip5, Installing and configuring hadoop 1. Unzip the hadoop installation package to / opt/module and configure the environment variables2. Configure the core site under / opt/module/hadoop-2.7.2/e ...

Posted by edtlov on Wed, 30 Mar 2022 04:58:27 +0300

Using shiro framework in spring application about session parsing

First look at the UML of shiro filter Request scenario where there is already a cookie to save sessionId: 1. The first time a request passes through shiro's filter onceprequestfilter, it will wrap the request and response into ShiroHttpServletRequest and ShiroHttpServletResponse, and set an attribute ID in the request. The purpose is that whe ...

Posted by ditusade on Tue, 29 Mar 2022 16:10:47 +0300