随笔分类 -  开发 / 框架

摘要:Dto Dto设置参考 [ExcelImporter(IsLabelingError = true)] public class MyDto { [ImporterHeader(Name = "序号")] [ExporterHeader(DisplayName = "序号")] public int 阅读全文
posted @ 2024-01-16 17:20 Kelvin's 阅读(142) 评论(0) 推荐(0)
摘要:发布命令 发布时,进入到Host文件夹路径下 dotnet publish -c XXX 发布完成会生成一个XXX文件夹,里面\net6.0\publish就是发布的程序了 运行命令 运行时,进入到publish文件夹,并在此处打开终端 设置运行端口为8888,使用配置文件appSettings.X 阅读全文
posted @ 2023-11-13 10:35 Kelvin's 阅读(1021) 评论(0) 推荐(0)
摘要:参考 Reference 引用某个程序集 PackageReference 引用某个 NuGet 包 ProjectReference 引用某个项目 Compile 常规的 C# 编译 None 没啥特别的编译选项,就为了执行一些通用的操作(或者是只是为了在 Visual Studio 列表中能够有 阅读全文
posted @ 2023-10-18 14:25 Kelvin's 阅读(95) 评论(0) 推荐(0)
摘要:Service public interface ITestFileService : IApplicationService { public Task<string> getDownloadUrl(); } public class TestFileService : XXXManagement 阅读全文
posted @ 2023-10-18 08:56 Kelvin's 阅读(291) 评论(1) 推荐(0)
摘要:定义一个自定义的配置文件 在调试配置中设置启动环境 这里的值填入刚刚设置的配置文件appsetings.{配置文件名字}.json 的配置文件名字 启动即可 系统启动时,首先会检查{配置文件名字}是否存在,存在的话使用appsettings.{配置文件名字}.json,不存在则使用appsettin 阅读全文
posted @ 2023-10-10 16:46 Kelvin's 阅读(219) 评论(0) 推荐(0)
摘要:参考 列名 public class Blog { [Column("blog_id")] public int BlogId { get; set; } public string Url { get; set; } } 列数据类型 public class Blog { public int B 阅读全文
posted @ 2023-10-10 14:35 Kelvin's 阅读(70) 评论(0) 推荐(0)
摘要:前端控制: 给普通角色配置签收的权限 后端权限控制: /** * 验证用户是否具备某权限 * * @param permission 权限字符串 * @return 用户是否具备某权限 */ public boolean hasPermi(String permission) /** * 验证用户是 阅读全文
posted @ 2022-11-16 11:30 Kelvin's 阅读(2447) 评论(0) 推荐(0)
摘要:不传参 computed: { // 仅读取 aDouble: function () { return this.a * 2 }, // 读取和设置 aPlus: { get: function () { return this.a + 1 }, set: function (v) { this. 阅读全文
posted @ 2022-08-22 18:22 Kelvin's 阅读(25) 评论(0) 推荐(0)
摘要:参考 父组件 <div class="formRight"> <div class="formRightLuckysheet"> <preview :id="businessId" :tableTemplateId1="tableTemplateId" ref="luckysheetPreview" 阅读全文
posted @ 2022-07-22 10:16 Kelvin's 阅读(158) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-07-05 10:39 Kelvin's 阅读(38) 评论(0) 推荐(0)
摘要:在SpringBoot中启动Netty 方式1 设置一个ApplicationListener @Component public class NettyBooter implements ApplicationListener<ContextRefreshedEvent>{ @Override p 阅读全文
posted @ 2021-05-22 20:43 Kelvin's 阅读(4582) 评论(0) 推荐(0)
摘要:SpringUtil报空处理 SpringUtil工具类 package com.kelvin.nettydemo; import org.springframework.beans.BeansException; import org.springframework.context.Applica 阅读全文
posted @ 2021-05-22 19:55 Kelvin's 阅读(406) 评论(0) 推荐(0)
摘要:mybatis-plus配置 添加依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.0</version> </depende 阅读全文
posted @ 2021-03-08 10:44 Kelvin's 阅读(854) 评论(0) 推荐(0)
摘要:创建springboot项目 项目结构如下: Maven 打包项目成jar包 添加Docker插件 设置服务器docker可被远程连接 vim /usr/lib/systemd/system/docker.service # 在ExecStart=/usr/bin/dockerd 后面加上-H tc 阅读全文
posted @ 2021-02-25 21:15 Kelvin's 阅读(162) 评论(0) 推荐(0)
摘要:源码: myComponentPage.wxml: <myComponent question="{{quesiton.quesContent}}" quid="{{quesiton.quesOrder}}" question="{{quesiton.quesContent}}" quesOptio 阅读全文
posted @ 2021-02-03 12:51 Kelvin's 阅读(645) 评论(0) 推荐(0)
摘要:官方案例: <!-- audio.wxml --> <audio poster="{{poster}}" name="{{name}}" author="{{author}}" src="{{src}}" id="myAudio" controls loop></audio> <button typ 阅读全文
posted @ 2021-02-03 11:34 Kelvin's 阅读(935) 评论(0) 推荐(0)