
个人笔记
小男孩程序员
一个快乐的码农
展开
-
java8 Stream使用学习
java8 Stream使用学习,包含元素处理,排序等原创 2022-07-14 15:31:20 · 121 阅读 · 1 评论 -
宝塔运行在nginx二级目录代理配置
访问路径为 http://1.15.13.54/bt/,每个静态文件和请求地址都需要重新代理server{ listen 80; server_name 1.15.13.54; index index.php index.html index.htm default.php default.htm default.html; location / { root /www/wwwroot/1.15.13.54; }原创 2022-02-19 17:11:05 · 2997 阅读 · 0 评论 -
springboot使用JWT,并自动获取用户信息
使用JWT生成token,并在controller中通过注解判断登录权限,自动在需要登录的api中获取用户信息,支持分布式登录。废话不多说,直接上链接sunxy0617/jinwu_admin: JWT使用学习 (github.com)原创 2021-05-31 09:48:49 · 2065 阅读 · 0 评论 -
asp.net创建webapi
1、添加一般应用程序,默认名Handler1.ashx,名字自己更改2、通过HttpContext.Current.Request.QueryString["参数名"]获取参数string id = HttpContext.Current.Request.QueryString["id"];3、整体如下using System;using System.Collections.Gener原创 2016-11-11 16:20:39 · 331 阅读 · 0 评论 -
根据公开属性名获取属性值
根据属性公开属性的名字(字符串)获取对应属性的值using System;namespace ConsoleApplication1{ public class Program { string str = "spp"; public string spp = "Hello World!"; public static原创 2017-10-19 16:16:02 · 391 阅读 · 0 评论 -
asp.net image控件显示Bitmap
可以借助base64直接显示图片,避免image.imageUrl="xxx.aspx"。代码如下: Bitmap bmp = new Bitmap(200, 200); using (var g = Graphics.FromImage(bmp)) { g.DrawString("a你好a", ...原创 2018-07-09 17:26:50 · 3368 阅读 · 1 评论