nekolr / fish Goto Github PK
View Code? Open in Web Editor NEW🐟 An rbac-based web application
🐟 An rbac-based web application
复现过程:
登录 -> 创建用户 -> 删除刚创建的用户时会报错:org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.nekolr.fish.entity.User.roles, could not initialize proxy - no Session
在构建 Docker 镜像的过程中需要通过 mvn clean package
进行项目编译,这个过程会执行项目的测试代码,尝试连接数据库,而此时 maven image 中并没有安装并运行数据库软件(MySQL)。
在这段代码中,当 User 的信息是通过缓存而不是查询数据库所得时,user 的 roles 属性因为是懒加载的,所以有可能会触发查询数据库的操作,而此时 hibernate session 根本就没有初始化,所以会报错:org.hibernate.LazyInitializationException: failed to lazily initialize a collection, could not initialize proxy - no Session
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.