简体   繁体   English

JavaLite 示例,简单示例运行错误

[英]JavaLite examples, Simple Example Running Error

Every time i run Simple-example downloaded from github JavaLite examples, I get this error.每次运行从 github JavaLite 示例下载的 Simple-example 时,都会出现此错误。 Exception in thread "main" org.javalite.activejdbc.InitException: Failed to connect to JDBC URL: jdbc:mysql:mysql://localhost/movies with user: root.线程“main” org.javalite.activejdbc.InitException 中的异常:无法连接到 JDBC URL:jdbc:mysql:mysql://localhost/movies 用户:root。 Also in read me file there is said to run mvn db-migrator:create command but I also get an error.同样在自述文件中,据说运行 mvn db-migrator:create 命令,但我也收到错误消息。 Why is that, I have downloaded maven and my mvn process-classes builed successfully.为什么会这样,我已经下载了 maven 并且我的 mvn 进程类构建成功。 Also I am interested in more JavaLite material, there are so few on the internet.我也对更多的 JavaLite 材料感兴趣,互联网上很少。

There is a README.md file in this example project: https://github.com/javalite/javalite-examples/blob/master/simple-example/README.md本示例项目中有一个 README.md 文件: https : //github.com/javalite/javalite-examples/blob/master/simple-example/README.md

It has exact instructions to run this example.它有运行此示例的确切说明。 One of the steps is:步骤之一是:

  • Adjust your database connection parameters in file:调整文件中的数据库连接参数:
src/main/resources/database.properties

This will ensure you have a correct configuration for your database.这将确保您的数据库配置正确。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM