分类 编程技术 下的文章
- 首页
- 编程技术
SQL Server:将截断字符串或二进制数据,哪个字段?
将截断字符串或二进制数据这个问题已经困扰我好多年了,一直没有很好的方法能快速定位到底是哪个字段,只能凭经验分析表结构和插入的数据来排查。终于,SQL Server 2019 可以返回详细的错误信息了。点此链接:https://docs.microsoft.com/zh-cn/sql/t-sql/statements/alter-database-scoped-configuration-tr...
gradle 通过 def 定义变量指定依赖版本
通过def定义版本变量,然后在依赖调用即可,这样便于版本的统一管理,也便于查看。def 定义的字符串变量,通过 $ 符号即可引用,需要注意的是,需要用 def 定义的变量时,字符串需要用双引号 "" 而不能用单引号 '' 。def springBootVersion = '2.1.5.RELEASE' dependencies { compile group:...
Spring Boot JdbcTemplate 多数据源配置
以下代码只体现了第二个数据源的部分,主数据源略配置文件:spring.datasource.kcgl.driver-class-name = com.mi...
Spring Boot 配置多数据源后出错:jdbcUrl is required with driverClassName
Spring Boot 配置多数据源后出错:jdbcUrl is required with driverClassName.解决方案spring.datasource.kcgl.url = jdbc:sqlserver://10.200.0.91:1433;DatabaseName=erp600_kcgl修改为:spring.datasource.kcgl.jdbc-url = jdbc:...
(转)Spring Boot 配置属性之 DataSource
datasourcespring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为true spring.datasource.abandon-when-percentage-full设定超时被废弃的连接占到多少比例时要被关闭或上报 spring.datasource.al...
给网页增加 Live2D 看板娘动漫人物
无意中发现这个 Live2D 看板娘的东东。https://github.com/EYHN/hexo-helper-live2dhttps://imjad.cn/archives/lab/add-dynamic-poster-girl-with-live2d-to-your-blog-02https://github.com/Dreamer-Paul/Pio
Vue vux 表单验证另一方法
vux 表单验证目录似乎没有好的方案,下面是一位网友分享的方法。目前统一在提交逻辑前遍历组件,通过 focus 和 blur 的调用能够触发颜色和错误图标的效果,但是受制于 valid 验证只适用于 x-input 等少量组件,对于cell或其他自定义组件的验证无法处理。var isOK = true; for (var x in this.$refs) { if (this.$refs...
Vue 阻止事件冒泡
问题描述最近使用 vue + vux 组件 开发了一个 H5 应用,cell 设置了链接,然后又在 cell 内部增加了 3 个按钮,点击按钮调用方法后仍会跳转到 cell 设置的链接。解决方案使用 stop 修饰符即可。<x-button mini type="warn" @click.native.stop="xx">反审核</x...
Vue 表单验证插件:async-validator
https://github.com/yiminghe/async-validator另外还有一个:vee-validatehttps://github.com/baianat/vee-validate但此插件和 vux 冲突,无法共用。提示 errors 定义冲突。
MySQL Windows 版安装时没有提示设置密码
安装 MySQL 过程中没让设置 root 的初始密码,这一点感觉有点变态,只能安装后自己修改一下。如上图,安装服务,启动服务后运行以下命令可以进入 MySQL,输入密码时直接回车空密码即可。mysql.exe -u -p进入后选择 mysql 数据库use mysql;执行以下代码修改 root 密码update user set password=password('12345') wh...
DexExpress GridView 设置前景色
StyleFormatCondition formatCondition = new StyleFormatCondition(); formatCondition.Appearance.Options.UseForeColor = true; formatCondition.Appearance.Options.HighPriority = true; formatCondition.Ap...
Browsersync:Web 开发浏览器热更新同步工具
Browsersync能让浏览器实时、快速响应您的文件更改(html、js、css、sass、less等)并自动刷新页面。更重要的是 Browsersync 可以同时在 PC、平板、手机等设备下进项调试。您可以想象一下:“假设您的桌子上有pc、ipad、iphone、android等设备,同时打开了您需要调试的页面,当您使用 browsersync 后,您的任何一次代码保存,以上的设备都会同...
Visual Studio 编辑器设置背景图片插件 - ClaudiaIDE
之前介绍过基于 IDEA 的 IDE 设置背景图片的方法。对于平时 C# 开发使用的 Visual Studio 当然也有设置编辑器背景图片的方法,需要安装插件。Visual Studio 设置编辑器背景图片插件:ClaudiaIDE
vue-longpress 长按事件指令插件
vue-longpress-plugin 是一个 Vue 长按事件指令插件,可以非常简单的实现长按操作,长按时间隔默认800ms,可通过对象字面量参数配置。项目地址https://github.com/ifu25/vue-longpress-plugin使用方法main.jsimport LongPress from '@/plugin/LongPress' Vue.use(LongPre...