- 博客(7)
- 收藏
- 关注
原创 用Java实现爬取网站数据
本文介绍了使用Java实现网站数据爬取并存入MySQL数据库的完整流程。主要包括:1)通过keytool命令导入网站SSL证书到Java信任库;2)创建数据库表结构;3)使用Jsoup库编写爬虫程序,解析网页表格数据并批量插入数据库;4)解决SSL证书验证失败的常见问题。文中提供了详细的代码示例和操作截图,包括RegionCode实体类定义、数据库连接配置、数据爬取逻辑等。该项目成功实现了从网页抓取行政区划代码和名称数据,并存储到MySQL数据库的功能,可作为Java网络爬虫开发的参考案例。
2025-05-24 20:00:38
500
原创 Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource...
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
2025-03-31 15:42:16
298
原创 关于template might not exist or might not be accessible by any of the configured Template Resolvers
template might not exist or might not be accessible by any of the configured Template Resolvers
2025-03-15 12:30:21
740
原创 关于导入Java游戏项目启动Error: Could not find or load main class main.XXXX
1.首先看自己的Java环境变量是否配置正确,通过javac和Java -version验证。2.在自己的编译器IDE,修改项目名,然后clean一下即可。
2023-02-28 21:50:04
489
原创 GitHub绑定阿里云域名
注意:DNS是否为successful, 不是的话可能阿里云域名解析记录值的相关配置错误。1.找到Pages里面的Custom domain, 填写你注册的域名save。2.需要在github里面新建一个文件名为CNAME。编辑你的域名网站,如:riseyang.top。1.首先注册一个域名,我这里选用的是阿里云。4.github里面settings配置。注意:配置前后ping相关地址是否连接。3.阿里云域名解析设置。
2022-10-26 09:34:22
1050
原创 Android Studio创建项目常见报错解决
常见的安卓创建项目的错误1.Could not find com.android.tools.build:gradle:4.1.0.解决办法:把4.1.0改为3.1.0即可2.Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.0/gradle-4.0.0.pom’解决办法:首先添加阿里云下载路径maven{ url ‘http://maven.aliyun.com/nexus/content
2021-01-31 14:12:08
1409
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人