You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 months ago | |
|---|---|---|
| .vscode | 5 months ago | |
| META-INF | 5 months ago | |
| src | 5 months ago | |
| .gitignore | 5 months ago | |
| Jenkinsfile | 5 months ago | |
| README.md | 5 months ago | |
| TestGui.java | 5 months ago | |
| cstatm-mte.jnlp | 5 months ago | |
| index.html | 5 months ago | |
| launcher.html | 5 months ago | |
| pom.xml | 5 months ago | |
| run.bat | 5 months ago | |
| run.ps1 | 5 months ago | |
| sonar-project.properties | 5 months ago | |
| start-atm.bat | 5 months ago | |
| 期中考试指南.md | 5 months ago | |
README.md
ATM应用程序
这是一个基于Java Swing的ATM模拟应用程序。
如何运行
方法1:使用批处理文件(推荐)
- 确保已安装Java 17或更高版本
- 双击运行
start-atm.bat文件
方法2:使用命令行
- 打开命令提示符或PowerShell
- 导航到项目目录:
cd c:\Users\ldl\Desktop\cstatm-mte - 运行以下命令:
java -jar target\cstatm-mte-0.0.1-SNAPSHOT-jar-with-dependencies.jar
方法3:使用Maven
- 确保已安装Maven
- 在项目目录中运行:
mvn clean package -DskipTests java -jar target\cstatm-mte-0.0.1-SNAPSHOT-jar-with-dependencies.jar
已修复的问题
- 修复了Customer类中的构造函数问题(将
public void Customer()更改为public Customer()) - 配置了Maven跳过测试以避免数据库连接问题
应用程序功能
- 用户登录界面
- 验证用户ID和PIN
- 连接PostgreSQL数据库进行用户验证
注意事项
- 应用程序需要连接到PostgreSQL数据库
- 如果没有可用的数据库连接,登录验证将失败
- 测试已配置为跳过,以避免数据库连接问题