yangzongzhuan / ruoyi-cloud Goto Github PK
View Code? Open in Web Editor NEW:tada: (RuoYi)官方仓库 基于Spring Boot、Spring Cloud & Alibaba的分布式微服务架构权限管理系统
Home Page: http://ruoyi.vip
License: MIT License
:tada: (RuoYi)官方仓库 基于Spring Boot、Spring Cloud & Alibaba的分布式微服务架构权限管理系统
Home Page: http://ruoyi.vip
License: MIT License
项目作者, 你好:
项目新版本是否考虑, 集成mybatis-plus与lombok, 这样可以简化代码、方便开发.
谢谢!
typeAliasesPackage: com.ruoyi.system
typeAliasesPackage: com.ruoyi.gen.domain
问题:实体类都在xxx.domain下,为什么system不需要,加上反而报错,没有看到其他地方有配置,求解惑
有时候配置文件修改了之后会出现getInfo接口(后台登录时) 403
报错信息如下:
java.lang.IllegalStateException: Unable to read meta-data for class com.ruoyi.common.core.utils.SpringUtils
......
......
Caused by: java.io.FileNotFoundException: class path resource [com/ruoyi/common/core/utils/SpringUtils.class] cannot be opened because it does not exist
.....
/**
* 令牌秘钥
*/
public final static String SECRET = "abcdefghijklmnopqrstuvwxyz";
Today's master branch cannot be packaged after cloning
The specific problems are as follows:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0:repackage (default) on project ruoyi-auth: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0:repackage failed: Unable to load the mojo 'repackage' in the plugin 'org.springframework.boot:spring-boot-maven-plugin:3.0.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.springframework.boot:spring-boot-maven-plugin:3.0.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/root/.m2/repository/org/springframework/boot/spring-boot-maven-plugin/3.0.0/spring-boot-maven-plugin-3.0.0.jar
[ERROR] urls[1] = file:/root/.m2/repository/org/springframework/spring-context/6.0.2/spring-context-6.0.2.jar
[ERROR] urls[2] = file:/root/.m2/repository/org/springframework/spring-aop/6.0.2/spring-aop-6.0.2.jar
[ERROR] urls[3] = file:/root/.m2/repository/org/springframework/spring-beans/6.0.2/spring-beans-6.0.2.jar
[ERROR] urls[4] = file:/root/.m2/repository/org/springframework/spring-core/6.0.2/spring-core-6.0.2.jar
[ERROR] urls[5] = file:/root/.m2/repository/org/springframework/spring-jcl/6.0.2/spring-jcl-6.0.2.jar
[ERROR] urls[6] = file:/root/.m2/repository/org/springframework/spring-expression/6.0.2/spring-expression-6.0.2.jar
[ERROR] urls[7] = file:/root/.m2/repository/org/springframework/boot/spring-boot-buildpack-platform/3.0.0/spring-boot-buildpack-platform-3.0.0.jar
[ERROR] urls[8] = file:/root/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.1/jackson-databind-2.14.1.jar
[ERROR] urls[9] = file:/root/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.14.1/jackson-annotations-2.14.1.jar
[ERROR] urls[10] = file:/root/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar
[ERROR] urls[11] = file:/root/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.14.1/jackson-module-parameter-names-2.14.1.jar
[ERROR] urls[12] = file:/root/.m2/repository/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.jar
[ERROR] urls[13] = file:/root/.m2/repository/net/java/dev/jna/jna/5.7.0/jna-5.7.0.jar
[ERROR] urls[14] = file:/root/.m2/repository/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
[ERROR] urls[15] = file:/root/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
[ERROR] urls[16] = file:/root/.m2/repository/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar
[ERROR] urls[17] = file:/root/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
[ERROR] urls[18] = file:/root/.m2/repository/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar
[ERROR] urls[19] = file:/root/.m2/repository/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar
[ERROR] urls[20] = file:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[21] = file:/root/.m2/repository/org/springframework/boot/spring-boot-loader-tools/3.0.0/spring-boot-loader-tools-3.0.0.jar
[ERROR] urls[22] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[23] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] urls[24] = file:/root/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.jar
[ERROR] urls[25] = file:/root/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[26] = file:/root/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[27] = file:/root/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[28] = file:/root/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[29] = file:/root/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[30] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[31] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[32] = file:/root/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.jar
[ERROR] urls[33] = file:/root/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
[ERROR] urls[34] = file:/root/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[35] = file:/root/.m2/repository/org/ow2/asm/asm/8.0/asm-8.0.jar
[ERROR] urls[36] = file:/root/.m2/repository/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.jar
[ERROR] urls[37] = file:/root/.m2/repository/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.jar
[ERROR] urls[38] = file:/root/.m2/repository/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.jar
[ERROR] urls[39] = file:/root/.m2/repository/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar
[ERROR] urls[40] = file:/root/.m2/repository/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.jar
[ERROR] urls[41] = file:/root/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[42] = file:/root/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar
[ERROR] urls[43] = file:/root/.m2/repository/org/vafer/jdependency/2.4.0/jdependency-2.4.0.jar
[ERROR] urls[44] = file:/root/.m2/repository/org/ow2/asm/asm-util/8.0/asm-util-8.0.jar
[ERROR] urls[45] = file:/root/.m2/repository/com/google/guava/guava/28.2-android/guava-28.2-android.jar
[ERROR] urls[46] = file:/root/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[47] = file:/root/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[48] = file:/root/.m2/repository/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.jar
[ERROR] urls[49] = file:/root/.m2/repository/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar
[ERROR] urls[50] = file:/root/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[51] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :ruoyi-auth
文档中说负载均衡使用的是Ribbon
,但在项目中并没有找到Ribbon
相关的依赖包。
多数据源,其他数据库在分页查询时如何配置数据库的dialect,看了下整个application.yml文件都没有找到关于pagehelper的配置?麻烦告知一下解决的原理谢谢!,还是说现在的pagehelper搭配dynamic多数据都能自动识别数据,自动配置方言了?
类似于这种配置:在本项目中都没有找到,那是不需要配置还是其他方式实现的呢?
#PageHelper分页插件
pagehelper:
helperDialect: mysql
supportMethodsArguments: true
params: count=countSql
autoRuntimeDialect: true
在开发环境修改数据库字段,或者添加一个新表,在部署生产环境的时候,需要自己将创建的表和字段同步上去
集成一种组件,可以将更新表机构的sql写入至项目中,在项目启动时,会自动检测数据库版本和修改的版本,自动完成数据库表结构的更新
目前发现可绕过网关,可直接通过各个服务的端口访问,请问这一块鉴权该怎么实现呢
添加了
<dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>3.0.3</version> </dependency>
没起作用
vue2我理解已经停止维护了,何时更新到vue3版本呢?我的意思是替换到cloud项目中。
RuoYiSystemApplication 启动失败
建议将springfox迁移到springdoc-openapi
验证码功能似乎有问题,无法加载,3.5版无此问题。
ruoyi-ui能否整合micro-app做前端微服务?
postgresql 支持嗎
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
请问nacos中的配置在哪获取
请问this.$tab.openPage,如何传参给打开的页面
RuoYi-Cloud代码生成器下载不了。
错误信息:
zipdownload.js?ca3f:33 Uncaught (in promise) TypeError: Cannot read property '1' of null
at resolveBlob (zipdownload.js?ca3f:33)
at eval (zipdownload.js?ca3f:18)
接口URL:http://localhost/dev-api/tool/gen/batchGenCode?tables=sys_oper_log
接口请求响应结果:
{"code":500,"msg":"404 NOT_FOUND"}
打断点,也不走Debug,这是什么原因,上述是该接口的错误信息。
主要是webpack版本不知道选哪个,按配置依赖设定的版本,compression-webpack-plugin要求webpack 5.1.0以上,但其他很多组件要求低,无法同时满足
请问若依框架是如何进行数据库版本管理的,
1、代码中auth服务负责用户认证,颁发token。
2、网关服务负责转发请求,
3、各个模块负责用户权限鉴权,且是硬编码方式(个人认为及其不合理,应当为数据库配置权限信息,动态鉴权)
问:为什么不在网关做统一动态鉴权?,所有服务入口通过网关进行转发。
请在issues里提问,方便统一处理。
Could not transfer artifact org.springframework.cloud:spring-cloud-dependencies:pom:Hoxton.SR9 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-dependencies/Hoxton.SR9/spring-cloud-dependencies-Hoxton.SR9.pom
现象:
新搭建的nacos, 可以创建命名空间,但是新增配置报错:发布失败,请检查参数是否正确。
原因:
nacos 初始化sql与nacos版本不一致
nacos.2.1.0 及之前数据库初始化脚本为nacos-mysql.sql,2.2.0 之后重命名为mysql-schema.sql
nacos 2.1.0版本之后初始化数据库中config_info 和 his_config_info 表中新增了encrypted_data_key密钥字段
如题, 使用spel表达式的时候没有解析
一、问题描述
连接的是阿里云服务器上部署的MySQL数据库,结果每次运行项目后没操作一小会,就开始报一些警告,具体如下:
The last packet successfully received from the server was 1,209,470 milliseconds ago. The last packet sent successfully to the server was 5,005 milliseconds ago.). Possibly consider using a shorter maxLifetime value.
然后连接就断开,无法访问数据库了。
二、原因分析
上面的问题总而言之意思就是,连接存活时间超时了之类的,但是数据库中的设置和我的连接池设置的空闲存活时间跟最大存活时间都远大于空闲时间,所以按理说不应该出现这种情况,而换到我本地的数据库,配置完全相同也不会出现这种情况,根据网上说的一些方法修改也不成功。
再查了查,发现应该是因为云服务器的Linux系统上的安全设置问题,如果在一段时间内没有与服务器进行交互就会断开连接,包括在用ssh连接云服务器时,如果一段时间不操作,也会卡死只能重连,所以只要是在本地的,就不会出现这种情况。
目前没找到解决办法!!!
菜单或者目录路径命名重复,直接导致路由name重复,在代码中使用了named route情况下,这种重复导致后面的相同name的路由覆盖之前的路由,最终出现出现404问题(菜单路径重复)
还会导致点击目录展开错误问题(目录路径重复)
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.