Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署问题 #2

Closed
adminlove520 opened this issue Apr 13, 2020 · 13 comments
Closed

部署问题 #2

adminlove520 opened this issue Apr 13, 2020 · 13 comments

Comments

@adminlove520
Copy link

部署的时候出现“Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.”的错误,请问怎么解决呀

@adminlove520
Copy link
Author

导入hosptial.sql时,数据库无数据,因此找不到用户名,后端应该是正常的。是不是初始化数据表有问题,log也没打印出生成表的信息

@adminlove520
Copy link
Author

Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()
您看下这条信息

@YuJian95
Copy link
Owner

部署的时候出现“Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.”的错误,请问怎么解决呀

这个问题把application-dev.yml重命名为application.yml即可。

@YuJian95
Copy link
Owner

导入hosptial.sql时,数据库无数据,因此找不到用户名,后端应该是正常的。是不是初始化数据表有问题,log也没打印出生成表的信息

数据库脚本暂时只有数据表结构数据记录晚点更新一下

@adminlove520
Copy link
Author

但是数据库还是没数据 admin登录不了的;小程序api能访问到,其余部分还没来得及测

@YuJian95
Copy link
Owner

Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()
您看下这条信息

这个是正常情况,因为权限那块是根据url动态鉴权,但是读取数据库的权限信息时,出现异常,我也还没解决。但是不影响使用,系统会过滤点没有jwt的请求,放开请求的url在application.yml中配置即可。

@adminlove520
Copy link
Author

那admin登录不了这是什么原因呢 提示 用户不存在

@adminlove520
Copy link
Author

{"result":{"code":404,"message":"不存在,该账号名称!"},"basePath":"http://localhost:8080","method":"GET","ip":"0:0:0:0:0:0:0:1","parameter":[{"name":"admin"},

@adminlove520
Copy link
Author

关键前端也没发现写死的登录数据,应该是在数据库呢,但是数据库整个就是空的

@adminlove520
Copy link
Author

方便加个q嘛 791751568

@adminlove520 adminlove520 changed the title 部署 部署问题 Apr 13, 2020
@YuJian95
Copy link
Owner

关键前端也没发现写死的登录数据,应该是在数据库呢,但是数据库整个就是空的

查看最新的commit,更新了数据库脚本,你也可以直接复制执行,最下方的插入数据操作部分代码

@adminlove520
Copy link
Author

好的

@YuJian95
Copy link
Owner

好的

如对你有所帮助,麻烦请 star、 watch、 fork,一键三连支持一下!
如需讨论或帮助可加Q群:866724245。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants