Data Permissions – Field Permissions [Practice – Explain in detail how to implement it based on relevant business] (based on the Ruoyi framework)

Look at this theory https://blog.csdn.net/weixin_41842550/article/details/119890216 Write the directory title here Implement data permissions according to department structure and user data 1. Required basic data 1 System Management–Department Management–Add the following structure 2 System Management–Role Management–Add two roles 3 System Management–User Management–Add 7 users 2. Screenshots and code implementation are as follows 1 Create a table […]

Android 11 adds all privileged permissions whitelist

Environment Android 11 SDK Requirements After modifying some built-in system APPs and adding some permissions, it may cause the problem of restarting after burning the firmware. When running logcat, an error similar to the following will be printed: 023-11-08 11:36:23.854 4173-4173/system_process E/AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions […]

MySQLUser management & permission control

Article directory Preface 1. User management 1. Create user 2. Delete user 3. Change user password 2. Permission control 1. User authorization 2. View permissions 3. Reclaim permissions Conclusion Foreword MySQL data is actually saved in the form of files, and login information is also saved in files. The default path for MySQL data under […]

Gin framework-A summary of problems encountered in running the terminal and their solutions (1)

1. panic: html/template: pattern matches no files: `template/**/**/*` Terminal full text code: 10:3:12 app | [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached. [GIN-debug] [WARNING] Running in “debug” mode. Switch to “release” mode in production. – using env: export GIN_MODE=release – using code: gin.SetMode(gin.ReleaseMode) 10:3:13 app | panic: html/template: […]

Binary tree OJ questions (check whether two numbers are the same, subtree of another tree, flip binary tree, determine balanced binary tree, symmetric binary tree)

Article directory Binary tree OJ question 1. Check whether the two numbers are the same 1. Ideas 2. Problem solving steps 3.Code 2. A subtree of another tree 1. Ideas 2.Code 3. Flip the binary tree 1. Ideas 2. Problem solving steps 3.Code 4. Judgment of Balanced Binary Tree 1. Ideas 2.Code 5. Symmetric binary […]

Android 13 GTS GtsPermissionControllerHostTestCases Test Failed

Android13 tablet project test GtsPermissionControllerHostTestCases Failed, the failure log is as follows: java.lang.AssertionError: on-device tests failed: com.android.gts.permissioncontroller.PermissionControllerTest29#testGranted: java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean androidx.test.uiautomator.UiObject2.isChecked()’ on a null object reference at com.android.gts.permissioncontroller.BasePermissionsTest.setPermissionGrantState(BasePermissionsTest.java:527) at com.android.gts.permissioncontroller.BasePermissionsTest.setPermissionGrantState(BasePermissionsTest.java:502) at com.android.gts.permissioncontroller.BasePermissionsTest.grantPermissions(BasePermissionsTest.java:393) at com.android.gts.permissioncontroller.BasePermissionsTest.grantPermission(BasePermissionsTest.java:389) at com.android.gts.permissioncontroller.PermissionControllerTest29.testGranted(PermissionControllerTest29.java:103) at android.permissioncontroller.gts.Utils.runDeviceTests(Utils.java:130) at android.permissioncontroller.gts.Utils.runDeviceTests(Utils.java:80) at android.permissioncontroller.gts.Utils.runDeviceTestsAsCurrentUser(Utils.java:44) at android.permissioncontroller.gts.PermissionControllerHostTest.testGrantAppPermissionFragment(PermissionControllerHostTest.java:229) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) […]

[Linux Process Control (1)] Process Termination–How to kill a process?

Blogger CSDN homepage:Hangdian Code Farmer-NEO ? ?Column classification:Linux from entry to proficiency? ? Code Warehouse: NEO’s Learning Diary ? Follow meTeach you more operating system knowledge ? Process terminated 1 Introduction 2. The overall structure of the article 3. Return the process from the main function 4. Use the library function exit to terminate the […]

vue3 drag and drop hooks (compatible with mobile terminals) and custom instruction drag and drop

Article directory specific goals Overall architecture process Specific code implementation Solution 1 How to write hooks How to use hooks is as follows Option 2: Writing custom instructions The method of customizing instructions is as follows: Specific goals 1. The drag and drop function is fully functional 2. Do not invade business 3. Boundary values […]

The namespace status in the k8s cluster always shows Terminating

1. Problem phenomenon When I was doing testing today, I couldn’t start the pod in a namespace. When I checked the ns status, it kept showing Terminating. [root@node1 ~]# kubectl get ns NAME STATUS AGE configmap Terminating 135d defaultActive 207d Harbor Active 207d kube-flannel Terminating 17m kube-node-lease Active 207d kube-public Active 207d kube-system Active 207d […]