如果是war包部署到外部tomcat,需要增加SpringBootServletInitializer子类,并重写其configure方法,或者将main函数所在的类继承SpringBootServletInitializer子类,并重写configure方法。 @SpringBootApplica ...
分类:
编程语言 时间:
2020-01-15 22:43:45
阅读次数:
77
启动springboot的时候莫名其妙出现这个错误,我properties里面也没配置数据源啥的,但就是出现这个错误 解决方法: 在启动类上加@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class}) 即在@SpringB ...
分类:
Web程序 时间:
2020-01-15 19:21:45
阅读次数:
90
Simple Extensible Autonomous Transacation Architecture, 是简单的、可扩展、自主性高的分布式架构 SEATA Server Configure 因我们使用正式的1.0.0 GA 版本,网上大多数找到的说明都是0.X版本,有不少变动,比如,在ser ...
分类:
其他好文 时间:
2020-01-15 19:19:56
阅读次数:
1264
一、注意点 1.网址 https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/connect-to-sql-server-when-system-administrators-are-locked-out?redi ...
分类:
数据库 时间:
2020-01-14 16:37:06
阅读次数:
121
使用execjs 解析抓取的网页数据时,报错:Could not find an available JavaScript runtime pip install pyPyExecjs 安装 解决方案: 下载:wget https://nodejs.org/dist/v8.11.4/node-v8. ...
分类:
编程语言 时间:
2020-01-14 13:28:17
阅读次数:
154
siege压测工具 安装: wget http://download.joedog.org/siege/siege-3.0.8.tar.gz cd siege-3.0.8 ./configure make make install 验证安装结果:输入siege -V 如果输出了版本号就代表安装没问题 ...
分类:
其他好文 时间:
2020-01-13 16:03:11
阅读次数:
177
问题描述: springboot版本 2.1.1 pom.xml配置 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifa ...
分类:
Web程序 时间:
2020-01-13 13:07:17
阅读次数:
88
(一)事故背景 最近在SQL Server 2012生产数据库上配置完事物复制(发布订阅)后,生产数据库业务出现了报错信息: 要复制的 LOB 数据的长度(xxxxx)超出了配置的最大值 65536。请使用存储过程 sp_configure 为 max text repl size 选项(默认值为 ... ...
分类:
数据库 时间:
2020-01-12 13:35:05
阅读次数:
130
第一步,安装swagger 使用程序包管理器控制台,输入如下命令: 第二部,StartUp.cs配置 注意 SWG1 这是随便取的名字 Configure中添加如下代码,使用中间件: 注意这里的,SWG1要和上面的SWG1名称保存一直。 在配置一下 launchSettings.json 运行项目之 ...
分类:
Web程序 时间:
2020-01-11 22:18:47
阅读次数:
215
首先先安装nuget组件:Steeltoe.Discovery.ClientCore 然后在ConfigureServices中进行注入 services.AddDiscoveryClient(Configuration); Configure中引用app.UseDiscoveryClient(); ...
分类:
Web程序 时间:
2020-01-11 00:37:20
阅读次数:
256