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

试了所有账户和密码都跳转到错误提示页面:没有该用户 #35

Open
yumilo opened this issue Jan 30, 2020 · 4 comments

Comments

@yumilo
Copy link

yumilo commented Jan 30, 2020

No description provided.

@tzy19981124
Copy link

在pom文件改下这个


src/main/java

/*.java



src/main/resources

/.


@tzy19981124
Copy link

<resources>
  <resource>
    <directory>src/main/java</directory>
    <excludes>
      <exclude>**/*.java</exclude>
    </excludes>
  </resource>
  <resource>
    <directory>src/main/resources</directory>
    <includes>
      <include>**/*.*</include>
    </includes>
  </resource>
</resources>

@spurs30
Copy link

spurs30 commented Dec 2, 2020

可以结合以上同学的答案,我按照他的方法修改了pom里面的内容,但是还是出现没有该用户问题,控制台出现Unknown system variable 'query_cache_size'发现是mysql驱动太低,与数据库版本不对应,在pom文件中把mysql驱动改为8.x版本,然后对driver和url进行如下修改:
jdbc.driver = com.mysql.cj.jdbc.Driver
jdbc.url = jdbc:mysql://localhost:3306/数据库名?serverTimezone=UTC
这个url也可以参照前面“3q分享”(https://github.com/JaceyRx/Examination_System/issues/38)中的url

@bdk001
Copy link

bdk001 commented Jan 7, 2021

我也是驱动器版本问题,总算解决了

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

4 participants