我正在尝试加载我下载的本地 html 文件。有人知道怎么做这个吗?我目前正在获取状态代码 [404]。
这就是我的做法
HtmlPage htmlPage=webClient.getPage("file:\\\\Users\\njd202\\Desktop\\zipmeupbich\\springbootmongodb\\src\\main\\resources\\downloadedfiles\\Cuban2.html") ;
Run Code Online (Sandbox Code Playgroud) 尝试将 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