上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

asp.net core 上传大文件配置 步骤

摘要: 1. 在 startup 文件中配置 public void ConfigureServices(IServiceCollection services) { services.Configure<FormOptions>(x => { x.ValueLengthLimit = int.MaxVal 阅读全文
posted @ 2021-12-08 13:46 码农at突泉 阅读(519) 评论(0) 推荐(0)

mybatis plus 1 .BaseMapper常用方法

摘要: 1 public interface BaseMapper<T> { 2 3 /** 4 * <p> 5 * 插入一条记录 6 * </p> 7 * 8 * @param entity 实体对象 9 */ 10 int insert(T entity); 11 12 /** 13 * <p> 14 阅读全文
posted @ 2021-11-22 16:49 码农at突泉 阅读(65) 评论(0) 推荐(0)

mybatis-plus 连接 msyql 数据库 多表关联查询 2

摘要: 1. 在 pom.xml 中 添加maven 依赖 1 <dependency> 2 <groupId>com.baomidou</groupId> 3 <artifactId>mybatis-plus-boot-starter</artifactId> 4 <version>3.0.5</vers 阅读全文
posted @ 2021-11-22 16:44 码农at突泉 阅读(491) 评论(0) 推荐(0)

MyBatisPlus概述

摘要: MyBatisPlus概述需要的基础:把我的MyBatis、Spring、SpringMVC就可以学习这个了!为什么要学习它呢?MyBatisPlus可以节省我们大量工作时间,所有的CRUD代码它都可以自动化完成!JPA 、 tk-mapper、MyBatisPlus偷懒的!简介是什么? MyBat 阅读全文
posted @ 2021-11-21 21:29 码农at突泉 阅读(155) 评论(0) 推荐(0)

自定义登录拦截器 HandlerInterceptor

摘要: 一、在项目根目录 建立 config 包,该包中主要存放 springboot配置 等java文件。 1.新建一个LoginHandlerInterceptor 检查登录的拦截器,该类要实现 HandlerInterceptor 接口 代码如下: package com.example.spring 阅读全文
posted @ 2021-11-20 22:00 码农at突泉 阅读(338) 评论(0) 推荐(0)

windows server 2012 远程服务器提示出现身份验证错误,要求的函数不受支持,这可能是由于credssp加密oracle修正,无法远程,解决办法

摘要: 远程服务器提示出现身份验证错误,要求的函数不受支持,这可能是由于credssp加密oracle修正,无法远程,解决办法网上也找了很多办法 网上主要有以下几种方法,但是都不行。1.如果可以直接访问,则只需在主机上通过安装对应的Windows 补丁即可解决2.对于无法进行直接访问的,可以通过打开组策略( 阅读全文
posted @ 2021-11-09 18:12 码农at突泉 阅读(12897) 评论(0) 推荐(0)

c# json转换成匿名 对象

摘要: string jsonString = @"[{'count':1,'no':'000001'},{'count':1,'no':'000001'}]"; dynamic json = Newtonsoft.Json.Linq.JToken.Parse(jsonString) as dynamic; 阅读全文
posted @ 2021-11-05 21:35 码农at突泉 阅读(557) 评论(0) 推荐(0)

springboot 采用application.yaml 自动装配注入步骤。

摘要: 1.首先 建立User类 @Component @ConfigurationProperties(prefix = "user") //加注解表明 User 类中的所有值 都由 yaml文件自动注入 ,变量名称必须相同,否则 会出现空值。 public class User { public int 阅读全文
posted @ 2021-10-31 20:09 码农at突泉 阅读(416) 评论(0) 推荐(0)

解决 .net core基础之编码问题-System.ArgumentException: ‘gb2312‘ is not a supported encoding name

摘要: 在利用webClient 抓取 编码方式为 GB2312 网页 提示不支持‘gb2312‘ is not a supported encoding name 解决办法 : 1.nuget引用dll:System.Text.Encoding.CodePages 2. startup文件中配置 //直接 阅读全文
posted @ 2021-10-29 10:32 码农at突泉 阅读(1065) 评论(0) 推荐(0)

删除mysql数据库后 ,如何找回以前的数据库呢??

摘要: 最近安装了appserv软件,但将其卸载后发现mysql不能使用 了,索性将mysql删除,删除突然想起来数据库未备份!!!怎么找回以前的数据呢??? 网上找了好多,但没几个能说清楚,研究好久,终于解决了。具体步骤如下: 一、备份data文件夹。 (数据都在这个文件夹)文件夹。MySql软件虽然删除 阅读全文
posted @ 2021-10-27 18:22 码农at突泉 阅读(1281) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页