随笔分类 -  backend

cmake + JNI
摘要:目录结构: |-HelloWorld |--src | main | java | main.java | cpp //和java目录同级 | CMakeLists.txt //cmake配置文件 | src // c\c++ 源文件目录 | HelloWorld.cpp | build // 生成 阅读全文
posted @ 2024-07-15 01:32 laremehpe 阅读(40) 评论(0) 推荐(0)
c++ 计算mp3时长
摘要:#include <stdio.h> #include <iostream> #include <fstream> #include <string> using namespace std; struct ID3V2 { char tag[3]; char version; char subVer 阅读全文
posted @ 2024-07-13 16:24 laremehpe 阅读(131) 评论(0) 推荐(0)
springboot 获取静态资源文件夹
摘要:@Component public class StaticResourcePathResolver { private final ServletContext servletContext; @Autowired public StaticResourcePathResolver(Servlet 阅读全文
posted @ 2024-06-01 09:39 laremehpe 阅读(301) 评论(0) 推荐(0)
c++ 分割字符串
摘要:#include "iostream" #include "vector" #include "string" using namespace std; vector<string> split(string txt, string splitor) { vector<string> strList 阅读全文
posted @ 2024-05-27 15:16 laremehpe 阅读(9) 评论(0) 推荐(0)
linux 手动安装 php composer
摘要:官网说明:composer官网地址 下载安装文件: wget https://getcomposer.org/installer 下载的文件名叫installer,重命名为php文件: mv installer php-setup.php php执行安装文件: php php-setup.php 然 阅读全文
posted @ 2024-04-19 23:10 laremehpe 阅读(76) 评论(0) 推荐(0)
php 网页支付 阿里sdk (沙箱测试)
摘要:直接上代码: <?php namespace app\controller; use app\BaseController; // require 'vendor/autoload.php'; use Alipay\EasySDK\Kernel\Factory; use Alipay\EasySDK 阅读全文
posted @ 2024-04-19 10:01 laremehpe 阅读(83) 评论(0) 推荐(0)
记录一次 nginx 代理调试 ie7
摘要:worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type "text/html;charset=utf-8"; sendfile on; keepalive_time 阅读全文
posted @ 2024-03-15 11:18 laremehpe 阅读(8) 评论(0) 推荐(0)
c++ wchar拼接
摘要:WCHAR* concatWcharStr(const WCHAR* str1, const WCHAR* str2) { size_t len1 = wcslen(str1) * 2; size_t len2 = wcslen(str2) * 2; size_t len3 = len1 + len 阅读全文
posted @ 2024-01-04 14:37 laremehpe 阅读(125) 评论(0) 推荐(0)
c++ md5文件校验
摘要:// main.cpp#include <stdio.h> #include <iostream> #include <string> #include "md5.h" #include <fstream> using namespace std; int getFileSize(ifstream* 阅读全文
posted @ 2024-01-03 16:06 laremehpe 阅读(92) 评论(0) 推荐(0)
c++ 复制文件路径
摘要:#include <stdio.h> #include <iostream> #include <string> #include <windows.h> #include <fstream> using namespace std; void writeFile(string path,strin 阅读全文
posted @ 2024-01-03 10:25 laremehpe 阅读(29) 评论(0) 推荐(0)
iis + php
摘要:下载php非线程安全版本: https://windows.php.net/downloads/releases/archives/ 重命名php.ini-recommend >php.ini 修改配置文件: 其中wwwroot为项目文件夹: 在wwwroot下创建index.php等会可以用到 添 阅读全文
posted @ 2023-12-29 15:12 laremehpe 阅读(12) 评论(0) 推荐(0)
初识php之 nginx + php
摘要:下载php: http://windows.php.net/download/ 添加环境变量: 配置php.ini文件 如果没有php.ini文件则可以复制php.ini-development文件重命名为php.ini文件 找到doc_root 修改为 项目文件夹注意不要用反斜杠作为路径分隔符 ( 阅读全文
posted @ 2023-12-28 10:42 laremehpe 阅读(172) 评论(0) 推荐(0)
Java 读取、修改MP3标签
摘要:import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import pojo.Id3v1; import pojo.Id3v2; import java.io.*; import 阅读全文
posted @ 2023-12-19 22:54 laremehpe 阅读(228) 评论(0) 推荐(0)
navicat 远程连接 mysql
摘要:use mysql -- 查看用户 select host,user from user;-- 更新hostupdate user set host='%' where user='laremehpe';-- 授予laremehpe用户 user表的查看、添加、更新权限grant select,in 阅读全文
posted @ 2023-11-30 10:57 laremehpe 阅读(8) 评论(0) 推荐(0)
[spring-mvc.xml] cannot be opened because it does not exist
摘要:IOException parsing XML document from class path resource [spring-mvc.xml]; nested exception is java.io.FileNotFoundException: class path resource [sp 阅读全文
posted @ 2023-10-19 10:18 laremehpe 阅读(49) 评论(0) 推荐(0)
springboot 打 war 包后的访问路径
摘要:http://laremehpe.eu.org:9090/api/access/time 域名:http://laremehpe.eu.org 端口号:9090 访问路径:/api/access/time /api 是tomcat解压后文件夹名称 /access 是类上的路径名称(@RequestM 阅读全文
posted @ 2023-10-18 16:44 laremehpe 阅读(275) 评论(0) 推荐(0)
tomcat 免费的 .pem 证书 配置https
摘要:获取证书网址: https://certbot.eff.org/ 下载并安装 https://github.com/certbot/certbot/releases/latest/download/certbot-beta-installer-win_amd64_signed.exe 如果服务器使用 阅读全文
posted @ 2023-10-11 17:34 laremehpe 阅读(824) 评论(0) 推荐(0)
bilibili视频解析—Java
摘要:public class Bilibili { private static String url, videoUrl, audioUrl, saveName; private boolean type; Bilibili(String saveName) { this.saveName = sav 阅读全文
posted @ 2023-09-29 13:02 laremehpe 阅读(763) 评论(0) 推荐(0)
c++ 无弹窗执行cmd命令
摘要:void prompt(LPWSTR szCmd) { TCHAR szModuleName[MAX_PATH]; STARTUPINFO si = { 0 }; PROCESS_INFORMATION pi = { 0 }; GetModuleFileName(NULL, szModuleName 阅读全文
posted @ 2023-09-26 15:04 laremehpe 阅读(226) 评论(0) 推荐(0)
win下编译libcurl x86静态库 (附带ssl)
摘要:Visual Studio版本: 克隆libcurl项目: git clone https://github.com/curl/curl.git 添加依赖(ssl): 在拷贝的项目下添加deps目录: 在deps下创建lib和include目录: 关于编译openssl参考: https://www 阅读全文
posted @ 2023-09-26 11:28 laremehpe 阅读(579) 评论(0) 推荐(0)