Wesley13 Wesley13
2年前
JAVAWEB应用模块(一)登录模块
java后台代码(MD5加密token验证):importcom.smart.ssai.admin.domain.User;importcom.smart.ssai.admin.service.UserService;importcom.smart.ssai.VO.Response;importcom.sm
Stella981 Stella981
2年前
Spring Boot Admin配置详解
Client端配置参数默认值说明spring.boot.admin.client.enabledtrue是否启用springbootAdmin客户端spring.boot.admin.client.url要注册的server端的url地址。如果要同时在多个server端口注册,则用逗号分隔各个server端的url地址
Stella981 Stella981
2年前
Spring Security教程之Spring Security实现访问控制
在SpringSecurity中,实现访问控制或权限控制是非常容易实现的,请看下面的代码片段:123  <http autoconfig"true"    <intercepturl pattern"/admin\" access"ROLE\_ADMIN" /  </http它的意思是,只有“ROLE\_ADM
Stella981 Stella981
2年前
Django内置Admin
Django内置的Admin是对于model中对应的数据表进行增删改查提供的组件,使用方式有:!(https://oscimg.oschina.net/oscnet/030fb4060154245a5f786ea1aeac63d160b.jpg)!(https://oscimg.oschina.net/oscnet/1bfc95415b18cc
Wesley13 Wesley13
2年前
MongoDB3.xxx 用户创建
启动MongoDB前需要关闭配置文件中的auth选项,否则不能创建用户首先创建用户管理用户useadmindb.createUser({user:'admin',pwd:'123456',roles:{role:'userAdminAnyDatabase',db:'admin'}})使用用户管理
Stella981 Stella981
2年前
Django 的admin的简单操作
admin的请求流程:1启动:importadmindefautodiscover():autodiscover\_modules('admin',register\_tosite)执行每一个app下的admin.py文件2注册,3设计URLclass
Stella981 Stella981
2年前
Dubbo Admin 使用(最新)
!image(https://img2020.cnblogs.com/blog/1160484/202004/1160484202004301540361291580944615.png"image")(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fimg2020.cnblo
Wesley13 Wesley13
2年前
ActiveMQ漏洞利用方法总结
转载来自:http://www.freebuf.com/column/161188.html1、Console存在默认端口和默认密码/未授权访问(默认密码为admin:admin)ActiveMQ默认使用8161端口,使用nmap对目标服务器进行扫描:root@localhostsrcnmapAp816
Wesley13 Wesley13
2年前
@Secured()、 @PreAuthorize() 、 @RolesAllowed()
在Springsecurity的使用中,为了对方法进行权限控制,通常采用的三个注解,就是@Secured()、@PreAuthorize()、@RolesAllowed()。示例,修改用户密码必须是ADMIN权限,可以用三种方法:@Secured({"ROLE_ADMIN"})publicvoidchangePassword(
Stella981 Stella981
2年前
Django自定义表单
修改polls/admin.py fromdjango.contribimportadminfrom.modelsimportQuestion,Choice\Registeryourmodelshere.classChoiceInline(admin.TabularInline):