随笔分类 - 网络安全
摘要:导包 <dependencies> <!--mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency
阅读全文
摘要:简介 Apache Shiro 是 Java 的一个安全框架。(又是Apache) Shiro 可以非常容易的开发出足够好的应用,其不仅可以用在 JavaSE 环境,也可以用在 JavaEE 环境。Shiro 可以帮助我们完成:认证、授权、加密、会话管理、与 Web 集成、缓存等。这不就是我们想要的
阅读全文
摘要:简介 spring Security 是针对spring项目的安全框架,也是springBoot底层安全模块默认的技术选型,他可以实现强大的web安全控制,我们仅需要引入spring-boot-starter-security模块,进行少量的配置,即可实现强大的安全管理 记住几个类: WebSecu
阅读全文
摘要:密码编码问题 没有对密码进行加密 @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication() .withUser("roo
阅读全文