小编Jor*_*xon的帖子

使用 HTMLUNIT 从本地 html 文件中读取 html

我正在尝试加载我下载的本地 html 文件。有人知道怎么做这个吗?我目前正在获取状态代码 [404]。

这就是我的做法

HtmlPage htmlPage=webClient.getPage("file:\\\\Users\\njd202\\Desktop\\zipmeupbich\\springbootmongodb\\src\\main\\resources\\downloadedfiles\\Cuban2.html") ;
Run Code Online (Sandbox Code Playgroud)

java web-crawler htmlunit web

2
推荐指数
1
解决办法
1234
查看次数

无法将 mbedtls 添加到项目中

尝试将 mbedtls 添加到我的项目中,我使用 apt-get install 来安装 libmbedtls-dev 这些导入是否不正确?适用于 Ubuntu 16.04。在 18.04 上运行良好

file (GLOB C_FILES *.c)
file (GLOB H_FILES "../../../include/thrift/ssl/*.h")
add_library (thrift_tcp_ssl ${THRIFT_LIB_TYPE} ${C_FILES} ${H_FILES})
target_link_libraries (thrift_tcp_ssl PRIVATE thrift -lmbedtls -lmbedx509 -lmbedcrypto)
target_include_directories (thrift_tcp_ssl PRIVATE ../../../include)
install (TARGETS thrift_tcp_ssl LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin)
Run Code Online (Sandbox Code Playgroud)

unbuntu 16 出现此错误

/usr/bin/ld: 找不到 -lmbedtls

c cmake mbedtls

0
推荐指数
1
解决办法
2436
查看次数

标签 统计

c ×1

cmake ×1

htmlunit ×1

java ×1

mbedtls ×1

web ×1

web-crawler ×1