摘要:
1、何为依赖冲突 Maven是个很好用的依赖管理工具,但是再好的东西也不是完美的。Maven的依赖机制会导致Jar包的冲突。举个例子,现在你的项目中,使用了两个Jar包,分别是A和B。现在A需要依赖另一个Jar包C,B也需要依赖C。但是A依赖的C的版本是1.0,B依赖的C的版本是2.0。这时候,Ma 阅读全文
摘要:
先了解一下两者都代表什么意思 int(10) 给 int 类型设置字节长度为 10,int 类型默认的值范围大小是:-2147483648和2147483647。 unsigned 设置 int 类型不能为负数。 创建 MySql 表进行演示 创建 test-in 演示 int(10) CREATE 阅读全文
摘要:
ABP提供的启动模板, 默认使用是英文: 虽然可以通过右上角的菜单切换成中文, 但是对于国内项目来说, 默认使用中文是很正常的需求. 本文介绍了如何实现默认语言的几种方法, 希望能对ABP爱好者有所帮助, Let's begin! 前期准备 使用ABP CLI创建一个名为AbpStudy的ASP.N 阅读全文
摘要:
先退出Docker 在PowerShell中执行代码 wsl --unregister docker-desktop wsl --unregister docker-desktop-data 阅读全文
摘要:
#解决方法 Try deleting the bin folder and rebuilding the solution. 阅读全文
摘要:
[TOC] 什么是MSMQ Message Queuing(MSMQ) 是微软开发的消息中间件,可应用于程序内部或程序之间的异步通信。主要的机制是:消息的发送者把自己想要发送的信息放入一个容器中(我们称之为Message),然后把它保存至一个系统公用空间的消息队列(Message Queue)中;本 阅读全文
摘要:
Quartz定时任务默认都是并发执行的,不会等待上一次任务执行完毕,只要间隔时间到就会执行, 如果定时任执行太长,会长时间占用资源,导致其它任务堵塞。
比如Job设置1分钟跑一次,每次获取50条短信发送,发送完成后状态设置为已发送。但是可能Job1执行的时间超过1分钟50条短信还没有跑完,这时候Job2 启动了,就会获取全部未发送的记录继续发送。造成重复执行短信发送的问题。 阅读全文
摘要:
The problem is likely that there's a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don't need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors. 阅读全文
摘要:
```
select DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-1, 0) --First day of previous month
select DATEADD(MONTH, DATEDIFF(MONTH, -1, GETDATE())-1, -1) --Last Day of previous month
``` 阅读全文
摘要:
Some specific needs of SQL developers like connecting to [SQL Server](https://www.microsoft.com/en/server-cloud/products/sql-server/) from OSX and even using Windows authentication can be covered by DataGrip. Since releasing DataGrip, we’ve received lots of comments about connecting to SQL Server. It appears it’s not straightforward as with other databases, requiring a couple of extra steps beforehand. Here is a small guide describing the main problems you may face and how to solve them. 阅读全文
摘要:
未找到与命令“dotnet ef”匹配的可执行文件 Specific to VS2017 15.3 or greater and ASP.NET CORE 2.0 or later... Install nuget for db provider via command line or nuget 阅读全文
摘要:
I have set the .ASPXAUTH cookie to be https only but I am not sure how to effectively do the same with the ASP.NET_SessionId.
The entire site uses HTTPS so there is no need for the cookie to work with both http and https 阅读全文
摘要:
the-client-and-server-cannot-communicate-because-they-do-not-possess-a-common-a 阅读全文
摘要:
C# 移除Response Header,403调整返回为404Make IIS return a 404 status code instead of 403 阅读全文
摘要:
Here's a workaround I found that works for all cases (including suspended dispatchers). It's not my code and I'm still working to fully understand it, but it does work. 阅读全文
摘要:
I understand that IValidatableObject is used to validate an object in a way that let's one compare properties against each other.
I'd still like to have attributes to validate individual properties, but I want to ignore failures on some properties in certain cases. 阅读全文
摘要:
Several people have asked me about using data annotations for validation outside of a UI framework, like ASP.NET MVC or Silverlight. The System.ComponentModel.DataAnnotations assembly contains everything you need to execute validation logic in the annotations. Specifically, there is a static Validator class to execute the validation rules. For example, let's say you have the following class in a console mode application 阅读全文
摘要:
依赖倒置是面向对象设计领域的一种软件设计原则。
软件设计有 6 大设计原则,合称 SOLID。
有人会有疑惑,设计原则有什么用呢?
设计原则是前辈们总结出来的经验,你可以把它们看作是内功心法。
只要你在平常开发中按照设计原则进行编码,假以时日,你编程的功力将会大增。 阅读全文