GithubHelp home page GithubHelp logo

oddfar / campus Goto Github PK

View Code? Open in Web Editor NEW
356.0 356.0 89.0 2.18 MB

Campus一款简单的后台管理系统,RuoYi-Vue简单版,快速开发框架,适合大学生开发毕设,或其他小项目。使用Spring Boot、Spring Security、MyBatis Plus、Jwt、Vue等技术

Home Page: https://oddfar.github.io/campus-doc/

License: MIT License

Java 45.51% Batchfile 0.03% SCSS 1.63% JavaScript 13.60% HTML 2.62% Vue 36.57% Dockerfile 0.03%

campus's Introduction

Hi there 👋

  • 🔭 I'm now in my fourth (4rd year) year of college.
  • 🌱 I’m currently learning.
  • 😄 Pronouns: 致远|oddfar
  • ⚡ Fun fact: I found that I do not know anything. 😣

private github information

private language

campus's People

Contributors

oddfar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

campus's Issues

申请加入案例

名称:站点名称
简介:站点简介
链接:站点链接
截图:站点截图链接
作者:作者名称
头像:作者头像链接

附带网站的截图

[bug]:

版本情况

Campus版本:1.1.2

问题描述

基本信息保存时,接口/system/user/profile(method=PUT)请求报错,注解@PutMapping值未指定属性字段name

  1. 复现代码
    @PutMapping("个人信息管理-修改")
  1. 测试涉及到的文件
    SysProfileController

问题截图

image

[bug]: 前端验证码显示不出来

版本情况

Campus版本: 当前版本:v1.0.11
部署方式:docker ,后台成功启动,前端用的docker nginx 启动的 直接用的下载的release的dist包
image


# 使用官方的 Nginx 镜像作为基础镜像
FROM nginx:latest

# 删除默认的 Nginx 站点配置
RUN rm /etc/nginx/conf.d/default.conf

# 将自定义的 Nginx 配置文件复制到容器中
COPY nginx.conf /etc/nginx/conf.d/

# 复制前端静态文件到 Nginx 的默认站点目录
COPY dist/ /usr/share/nginx/html

# 暴露 Nginx 默认的18160端口
EXPOSE 18160

问题描述

  1. 截图
    image

image

3.改成host docker 启动前端后 提示后端接口异常,看起来是请求到服务端了

image

[bug]: /prod-api/* 404 not found

版本情况

Campus版本:campus-imt-V1.0.11(请确保最新尝试是否还有问题)

问题描述

解压https://github.com/oddfar/campus-imaotai/releases/download/V1.0.11/campus-imt-V1.0.11.zip后,docker compose up 启动,浏览器访问http://ip/,输入账号和密码后登录,在浏览器网络请求里查看提示:

http://ip/prod-api/login post 404 not found

修改nginx的proxy_pass,问题依旧。

# proxy_pass http://campus-server:8160/;
proxy_pass http://127.0.0.1:8160/;
  1. 复现代码

问题截图(如有)

补充说明(可选)

[bug]: 关于注解@JsonIgnore,序列化问题

版本情况

Campus版本: 1.1.8(最新版)

问题描述

初次启动项目,在用户管理-新增用户时,后端返回密码为空。

分析

  1. 查对应的 SysUserEntity 类源码,发现在字段 password上,注解 @JsonIgnore 被错误使用。

  2. 前端依然使用 JSON 传递用户对象,导致后端反序列化忽略了 password 字段,导致 SysUserEntity 中 password 为空

解决思路

以下思路仅供参考,如有更好的方案,欢迎一起讨论。

  1. 前端使用 form 表单的形式提交参数,而非 json 格式。

  2. 或者,取消注解 @Data,改成 getter,setter 方法,在 getter 方法上加注解 @JsonIgnore,而在 setter 方法上依然使用注解 @JsonProperty

[bug]: 无法访问前端

版本情况

Campus版本: v1.0.11(请确保最新尝试是否还有问题)

问题描述

使用v1.0.11提供的dist文件,宝塔部署的前端

  1. 复现代码
  location / {
	root   /www/wwwroot/192.168.183.128/dist;
	try_files $uri $uri/ /index.html;
	index  index.html index.htm;
}
		
location /prod-api/ {
	proxy_set_header Host $http_host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header REMOTE-HOST $remote_addr;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_pass http://localhost:8160/;
}
  1. 测试涉及到的文件

问题截图(如有)

image
image
image

补充说明(可选)

[bug]:

版本情况

Campus版本: 1.0.12(请确保最新尝试是否还有问题)

问题描述

  1. 复现代码
Console.log("报错了");
  1. 测试涉及到的文件

问题截图(如有)

补充说明(可选)

[bug]: bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table 'oddfar_campus.i_shop' doesn't exist

版本情况

Campus版本: 1.0.11(docker hub latest版本)

问题描述

os:centeros7.6
mysql:5.7
安装部署方式:docker
docker安装部署,执行命令docker pull oddfar/campus-imaotai:latest
按照配置上application-prod.yml配置好mysql,redis
mysql也导入了https://github.com/oddfar/campus-imaotai/blob/master/doc/sql/campus_imaotai-1.0.5.sql
运行启动没报错,前端部署完成后系统也能正常登陆进去,但是点击i茅台模块的菜单,基本都是卡顿不动,看ssh的campus-imaotai的容器日志才发现找不到表,但是我已经导入并且里面也自动初始化了数据(系统启动后自动初始化数据,说明连接正确),库表如下
image
image

错误如下:

  1. 复现代码
    2024-03-13 14:32:49 |INFO |DynamicRoutingDataSource.java:243 |dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
    _ _ |_ _ |. ___ _ | _
    | | |/|)(| | |\ |)|||\
    / |
    3.5.4.1
    Exception in thread "Thread-2" org.springframework.jdbc.BadSqlGrammarException:

Error updating database. Cause: java.sql.SQLSyntaxErrorException: Table 'oddfar_campus.i_shop' doesn't exist

The error may exist in com/oddfar/campus/business/mapper/IShopMapper.java (best guess)

The error may involve defaultParameterMap

The error occurred while setting parameters

SQL: truncate table i_shop

Cause: java.sql.SQLSyntaxErrorException: Table 'oddfar_campus.i_shop' doesn't exist

; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table 'oddfar_campus.i_shop' doesn't exist
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:239)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
at com.sun.proxy.$Proxy115.update(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:288)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:64)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at com.sun.proxy.$Proxy120.truncateShop(Unknown Source)
at com.oddfar.campus.business.service.impl.IShopServiceImpl.refreshShop(IShopServiceImpl.java:76)
at com.oddfar.campus.business.service.impl.IShopServiceImpl$$FastClassBySpringCGLIB$$5cecaa53.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
at com.oddfar.campus.business.service.impl.IShopServiceImpl$$EnhancerBySpringCGLIB$$f9254385.refreshShop()
at com.oddfar.campus.business.service.impl.IMTServiceImpl.refreshAll(IMTServiceImpl.java:509)
at com.oddfar.campus.business.service.impl.IMTServiceImpl$1.run(IMTServiceImpl.java:72)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.sql.SQLSyntaxErrorException: Table 'oddfar_campus.i_shop' doesn't exist
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:916)
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:354)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:48)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:75)
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.apache.ibatis.plugin.Plugin.invoke(Plugin.java:61)
at com.sun.proxy.$Proxy156.update(Unknown Source)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
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.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:106)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)
at com.sun.proxy.$Proxy155.update(Unknown Source)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
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.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)
... 16 more
2024-03-13 14:32:57 |INFO |JacksonConfig.java:46 |鍒濆鍖� jackson 閰嶇疆
2024-03-13 14:32:58 |INFO |DirectJDKLog.java:173 |Starting ProtocolHandler ["http-nio-8160"]
2024-03-13 14:32:58 |INFO |StartupInfoLogger.java:61 |Started CampusApplication in 16.519 seconds (JVM running for 17.553)
error from daemon in stream: Error grabbing logs: invalid character 'l' after object key:value pair

  1. 测试涉及到的文件

问题截图(如有)

补充说明(可选)

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.