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

浙公网安备 33010602011771号