随笔分类 - backend
cmake + JNI
摘要:目录结构: |-HelloWorld |--src | main | java | main.java | cpp //和java目录同级 | CMakeLists.txt //cmake配置文件 | src // c\c++ 源文件目录 | HelloWorld.cpp | build // 生成
阅读全文
c++ 计算mp3时长
摘要:#include <stdio.h> #include <iostream> #include <fstream> #include <string> using namespace std; struct ID3V2 { char tag[3]; char version; char subVer
阅读全文
springboot 获取静态资源文件夹
摘要:@Component public class StaticResourcePathResolver { private final ServletContext servletContext; @Autowired public StaticResourcePathResolver(Servlet
阅读全文
c++ 分割字符串
摘要:#include "iostream" #include "vector" #include "string" using namespace std; vector<string> split(string txt, string splitor) { vector<string> strList
阅读全文
linux 手动安装 php composer
摘要:官网说明:composer官网地址 下载安装文件: wget https://getcomposer.org/installer 下载的文件名叫installer,重命名为php文件: mv installer php-setup.php php执行安装文件: php php-setup.php 然
阅读全文
php 网页支付 阿里sdk (沙箱测试)
摘要:直接上代码: <?php namespace app\controller; use app\BaseController; // require 'vendor/autoload.php'; use Alipay\EasySDK\Kernel\Factory; use Alipay\EasySDK
阅读全文
记录一次 nginx 代理调试 ie7
摘要:worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type "text/html;charset=utf-8"; sendfile on; keepalive_time
阅读全文
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
阅读全文
c++ md5文件校验
摘要:// main.cpp#include <stdio.h> #include <iostream> #include <string> #include "md5.h" #include <fstream> using namespace std; int getFileSize(ifstream*
阅读全文
c++ 复制文件路径
摘要:#include <stdio.h> #include <iostream> #include <string> #include <windows.h> #include <fstream> using namespace std; void writeFile(string path,strin
阅读全文
iis + php
摘要:下载php非线程安全版本: https://windows.php.net/downloads/releases/archives/ 重命名php.ini-recommend >php.ini 修改配置文件: 其中wwwroot为项目文件夹: 在wwwroot下创建index.php等会可以用到 添
阅读全文
初识php之 nginx + php
摘要:下载php: http://windows.php.net/download/ 添加环境变量: 配置php.ini文件 如果没有php.ini文件则可以复制php.ini-development文件重命名为php.ini文件 找到doc_root 修改为 项目文件夹注意不要用反斜杠作为路径分隔符 (
阅读全文
Java 读取、修改MP3标签
摘要:import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import pojo.Id3v1; import pojo.Id3v2; import java.io.*; import
阅读全文
navicat 远程连接 mysql
摘要:use mysql -- 查看用户 select host,user from user;-- 更新hostupdate user set host='%' where user='laremehpe';-- 授予laremehpe用户 user表的查看、添加、更新权限grant select,in
阅读全文
[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
阅读全文
springboot 打 war 包后的访问路径
摘要:http://laremehpe.eu.org:9090/api/access/time 域名:http://laremehpe.eu.org 端口号:9090 访问路径:/api/access/time /api 是tomcat解压后文件夹名称 /access 是类上的路径名称(@RequestM
阅读全文
tomcat 免费的 .pem 证书 配置https
摘要:获取证书网址: https://certbot.eff.org/ 下载并安装 https://github.com/certbot/certbot/releases/latest/download/certbot-beta-installer-win_amd64_signed.exe 如果服务器使用
阅读全文
bilibili视频解析—Java
摘要:public class Bilibili { private static String url, videoUrl, audioUrl, saveName; private boolean type; Bilibili(String saveName) { this.saveName = sav
阅读全文
c++ 无弹窗执行cmd命令
摘要:void prompt(LPWSTR szCmd) { TCHAR szModuleName[MAX_PATH]; STARTUPINFO si = { 0 }; PROCESS_INFORMATION pi = { 0 }; GetModuleFileName(NULL, szModuleName
阅读全文
win下编译libcurl x86静态库 (附带ssl)
摘要:Visual Studio版本: 克隆libcurl项目: git clone https://github.com/curl/curl.git 添加依赖(ssl): 在拷贝的项目下添加deps目录: 在deps下创建lib和include目录: 关于编译openssl参考: https://www
阅读全文