摘要: nginx 为windows版本 在配置文件nginx.conf 的http{}段增加一行配置 server_names_hash_bucket_size 64; 如果64不够可以设128等 阅读全文
posted @ 2019-03-28 09:53 厦门_成 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: Spring Boot的spring.jmx资源管理是默认打开的,而两个项目同时使用会冲突 需要在第二个、或者第三个springboot项目中增加如下配置: 1:application.properties spring.jmx.enabled=false 2: jmx: enabled: fals 阅读全文
posted @ 2019-01-17 13:50 厦门_成 阅读(530) 评论(0) 推荐(0) 编辑
摘要: pom配置: 一调用以下代码就报错: Service service = new Service(); Call call = (Call) service.createCall(); 解决方法: 1,commons-discovery依赖commons-logging,所以我们把commons-l 阅读全文
posted @ 2018-04-23 17:17 厦门_成 阅读(12074) 评论(0) 推荐(2) 编辑
摘要: 配置文件app.properties如下: yt.api.url=http://localhost:9000 springmvc.xml 增加配置: <context:property-placeholder location="classpath:app.properties"/> 控制器调用: 阅读全文
posted @ 2018-03-15 14:50 厦门_成 阅读(1624) 评论(0) 推荐(1) 编辑
摘要: 1,最好通过Nuget添加引用EntityFramework.SqlServerCompact,省得去手动填写配置文件。 2,部署后遇到如下的问题: 原因是打包后的Bin下面缺少System.Data.SqlServerCe.dll驱动。 需要到C:\Program Files\Microsoft 阅读全文
posted @ 2018-03-02 17:46 厦门_成 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: C:\Program Files\Microsoft SQL Server Compact Edition\v4.0 目录下面 选择下面这 7 个 SQL Server Compact DLL,并复制它们: Sqlceca40.dll Sqlcecompact40.dll Sqlceer40EN.d 阅读全文
posted @ 2018-03-02 17:46 厦门_成 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1:当我们通过nginx代理访问时,由于nginx配置了映射到的一个站点为端口为127.0.0.1:6201,导致访问swagger接口时出现增加端口号,如下截图,这样就导致整个swagger无法使用。 2:这个问题网上找了很多没找到方法,主要是自己英语太差了,没注意看到注释内容,可以配置一个固定的 阅读全文
posted @ 2018-03-02 15:21 厦门_成 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 项目结构: 首先引用 Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.Design 增加类DesignTimeDbContextFactory QHContext 类 编辑Qh.Data项目的csproj 增加 <I 阅读全文
posted @ 2018-02-01 10:46 厦门_成 阅读(710) 评论(0) 推荐(1) 编辑
摘要: 项目中使用html转成pdf ,遇到包含& 特殊字符就会出错。 比如:<p>&</p>使用该html输出成pdf就会报异常 解决方案:需使用html转义符<p>&amp;</p>来生成。 阅读全文
posted @ 2017-12-07 14:40 厦门_成 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 1:项目使用的是jre1.8版本。 2:服务器 apache-tomcat-8.5.23 报错如下: 严重 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] com.microsoft.sqlserver.jdbc.S 阅读全文
posted @ 2017-12-07 14:25 厦门_成 阅读(2488) 评论(0) 推荐(0) 编辑