上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页
摘要: NETCORE - 动态类型 dynamic 取值 环境:.NET6 + WebApi 控制器传参时,使用 dynamic 安装 nuget 包 Program.cs 中 //添加对象序列化程序为Newtonsoft.Json builder.Services.AddControllers().Ad 阅读全文
posted @ 2023-06-26 11:57 无心々菜 阅读(558) 评论(0) 推荐(0)
摘要: mysql 存储过程实例 1. 存储过程 - 递归查询数据字典树数据 CREATE DEFINER=`lihongyuan`@`%` PROCEDURE `GetDataDictionaryTree`( in tkey varchar(200)) BEGIN WITH RECURSIVE cte A 阅读全文
posted @ 2023-06-19 09:21 无心々菜 阅读(57) 评论(0) 推荐(0)
摘要: Bat 文件启动 .net 项目 、启动bat @echo off REM 声明采用UTF-8编码 chcp 65001 @echo "准备启动" D: @echo "启动 iserver" CD D:\tools\supermap-iserver-11.0.0-windows-x64\bin\ c 阅读全文
posted @ 2023-06-14 15:48 无心々菜 阅读(179) 评论(0) 推荐(0)
摘要: NETCORE - Swagger配置 环境:WebApi NET6 配置输出文档,项目右键-> 属性 -> 生成 -> 输出 勾选 “生成包含API文档的文件” 维护生成文件名称。 2. Program.cs 中的修改 把原来的 builder.Services.AddSwaggerGen(); 阅读全文
posted @ 2023-05-29 15:45 无心々菜 阅读(149) 评论(0) 推荐(0)
摘要: VUE- history模式发布项目部署 环境:vue项目 发布后,通过nginx部署到docker容器内。 如需要去掉路径中的 #/ 则需要使用history模式发布。 1. 修改路由的配置文件 const router = new Router({ base: process.env.BASE_ 阅读全文
posted @ 2023-05-16 18:54 无心々菜 阅读(213) 评论(0) 推荐(0)
摘要: VUE - 加载图片 方式1: <template> <div style="width: 100%; height: 100%"> <img :src="addjpg" :data-source="addjpg" alt="" /> </div> </template> <script> impo 阅读全文
posted @ 2023-04-23 18:20 无心々菜 阅读(137) 评论(0) 推荐(0)
摘要: NETCORE - IdentityServer4 密码验证模式 项目框架 .NET6 WebApi 1. 创建 服务端项目 NETCORE.ID4.Password.Server 创建 客户端项目 NETCORE.ID4.Password.Client1 引用:(60条消息) IdentitySe 阅读全文
posted @ 2023-04-13 13:00 无心々菜 阅读(68) 评论(0) 推荐(0)
摘要: VUE - 自定义字体 文中以 HYAlzheimer.ttf 字体为例 1. 下载字体,复制到项目中 assets / font 文件夹下 创建 font.css 文件 @font-face { font-family: 'HY'; src: url('HYAlzheimer.ttf'); /* 阅读全文
posted @ 2023-04-07 13:26 无心々菜 阅读(297) 评论(0) 推荐(0)
摘要: NETCORE - IdentityServer4 客户端凭据模式 一. 创建服务端 项目:NETCORE.ID4.ClientSecrets.Server (.Net6 web api) 1. 安装IdentityServer4 依赖包 2. 创建config.cs配置类 using Identi 阅读全文
posted @ 2023-02-21 11:47 无心々菜 阅读(146) 评论(0) 推荐(0)
摘要: NETCORE 使用中间件做文件服务器 创建net6 webapi 项目 创建中间件类 StaticRequestMiddleware public class StaticRequestMiddleware { public static string RootPath { get; set; } 阅读全文
posted @ 2023-02-08 16:46 无心々菜 阅读(90) 评论(0) 推荐(1)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页