Code Monkey home page Code Monkey logo

spring-boot-security-jwt-spa's Issues

CacheManager无法注入

您好,我按照你您的例子,整合了一个demo,但是启动时报错,无法创建CacheManager这个bean,
Consider revisiting the entries above or defining a bean of type 'org.springframework.cache.CacheManager' in your configuration.
我想问一下这是什么原因造成的呢,谢谢!

jwt生成token的问题

您好,我在阅读jwt生成token代码的地方,我看注释写的是生成签名值,但是生成token算法用的是HMAC256,这个算法不是摘要算法吗?是我的理解不正确吗?麻烦解答一下 ,谢谢。

关于string与GrantedAuthority collection之间的转换

您在创建UserEntity.java时提到

关于 role 为什么使用 GrantedAuthority 说明下:其实是为了简化代码,直接用了 Security 现成的 role 类,实际项目中我们肯定要自己进行处理,将其转换为 Security 的 role 类。

请问这个转换有推荐的教程吗?

我在MySQL数据库中创建类型为varchar(255)的role字段,UserEntity只能通过String读取,但是在UserDetailsServiceImpl.java中传参的时候却需要传Collection<? extends GrantedAuthority>类型的参数。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.