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

你好,请问新构造项目的时候是不是需要自己先建库建表,然后再去执行init.java? #23

Open
wangzh1998 opened this issue Apr 11, 2020 · 3 comments

Comments

@wangzh1998
Copy link

执行init.java的时候,会报错找不到数据库bbs.
手动创建数据库bbs后,再执行init.java会提示找不到数据表。
请问,是我的操作有问题还是其他?如果确实需要建表,可否给列出表名?或者更新init文件,直接将建库建表的操作写在sql文件中。

@wangzh1998
Copy link
Author

我看到了,数据表结构的sql在src/main/webapp/WEB-INF/install文件夹下。

@wangzh1998
Copy link
Author

截屏2020-04-1112 03 44

只要删除图中第一行代码前的注释,即可导入数据库表结构。

@diyhi
Copy link
Owner

diyhi commented Apr 12, 2020

只要按照说明来导入项目,就能正确建表。你搭建的项目没自动建表,是因为没严格按照‘源码运行教程’里的(1、2、3步骤)去执行就运行了init.java

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