# JavaNavigation **Repository Path**: hmfdev/java-navigation ## Basic Information - **Project Name**: JavaNavigation - **Description**: JavaWeb开发的一个IT技术内容导航,方便让你查看各个内容 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-16 - **Last Updated**: 2022-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaNavigation #### 介绍 JavaWeb开发的一个IT技术内容导航,方便让你查看各个内容 ![输入图片说明](https://images.gitee.com/uploads/images/2021/0616/112459_1161d38a_5474516.png "fa8b6b780f0b1420be48612618dc8f6.png") #### 软件架构 JavaWeb + mysql + html + css + javascript + tomcat 9.0.13 #### 安装教程 1. clone到本地 2. 在mysql数据库中创建一个 kkbdb 数据库 3. 导入数据库文件 db_dump.sql,在 database 目录下 4. 在 src 文件夹下的 db.properties 文件中配置你的数据库连接 5. 导入 web/WEB-INF/lib 目录下的 jar 包 6. 配置 tomcat,注意你的 tomcat 版本,我用的是 tomcat 9.0.13 #### 使用说明 1. 最主要的两个文件夹就是 src 和 web 文件夹的内容, 2. src 文件夹放的是 后端代码 3. web 文件夹放的是 前端代码 4. 程序启动访问的是 web 目录下的 index.html 页面 5. http://localhost:8080/JavaNavigation_war_exploded/links 可以查看数据库返回的Json内容,在 LinkServlet.java 里 6. tomcat 启动后,默认访问路径是 http://localhost:8080/JavaNavigation_war_exploded/,可能会有差异,但可以在 tomcat 中配置 Application context 7. 如果出现修改前端内容不生效的情况,请删除掉 apache-tomcat-9.0.13/work 目录下的所有缓存内容 8. test 文件夹是测试代码,可以测试 /links 路径返回的内容 #### 关于运行 1. 配置 tomcat 运行时,需要点击一下 Deployment,然后点击一下加号,Application context 出现 /JavaNavigation_war_exploded 即可 2. 启动成功后访问 http://localhost:8080/JavaNavigation_war_exploded/ 即可出现内容 3. 由于启动报 org.junit 包不存在的情况,我就把测试文件夹 test 删除了