上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 58 下一页
摘要: 1.查出有哪些约束 SELECT CONSTRAINT_NAME,CONSTRAINT_TYPE,STATUS FROM USER_CONSTRAINTS WHERE TABLE_NAME ='D_DRUG_DICTIONARY'; 2.删除 唯一约束 ALTER TABLE D_DRUG_DICT 阅读全文
posted @ 2020-05-23 01:08 VipSoft 阅读(3252) 评论(0) 推荐(0)
摘要: 1.Demo,实际项目中不这么使用 class Program { static void Main(string[] args) { //缓存的配置 MemoryCacheOptions cacheOps = new MemoryCacheOptions() { //缓存最大为100份 //##注 阅读全文
posted @ 2020-05-16 14:37 VipSoft 阅读(1564) 评论(0) 推荐(0)
摘要: Startup.cs public class Startup { public static readonly ILoggerFactory efLogger = LoggerFactory.Create(builder => { builder.AddFilter((category, leve 阅读全文
posted @ 2020-05-15 20:54 VipSoft 阅读(2822) 评论(0) 推荐(0)
摘要: using NLog; private static Logger logger = LogManager.GetCurrentClassLogger(); //初始化日志类 NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmln 阅读全文
posted @ 2020-05-15 11:01 VipSoft 阅读(880) 评论(0) 推荐(0)
摘要: 1.Nuget包添加引用: X.PagedList.Mvc.Core 2.View: @using VipSoft.Web.Model @model X.PagedList.IPagedList<VipSoft.Web.Model.DBEntity.Job> @using X.PagedList.M 阅读全文
posted @ 2020-05-14 19:56 VipSoft 阅读(1464) 评论(0) 推荐(0)
摘要: StartUp.cs public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( nam 阅读全文
posted @ 2020-05-14 13:57 VipSoft 阅读(280) 评论(0) 推荐(0)
摘要: Startup.cs public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseCorsMiddleware(); //其它代码...... } CorsMiddleware.cs using S 阅读全文
posted @ 2020-05-12 20:56 VipSoft 阅读(473) 评论(1) 推荐(0)
摘要: 仅我的代码“警告 你正在调试 XXX.dll 的发布版本。如果在启用”仅我的代码”的同时使用通过编译器优化的发布版本,调试体验会降级(例如,将不会命中断点) 停止调试 禁用仅我的代码并继续 继续调试 继续调试(不再询问) 阅读全文
posted @ 2020-04-27 14:16 VipSoft 阅读(5562) 评论(0) 推荐(0)
摘要: 将文件上传至 /opt 目录下 [root@localhost opt]# ll total 63704 -rw-r--r--. 1 root root 9181276 Mar 28 11:07 apache-maven-3.6.1-bin.zip drwxr-xr-x. 7 root root 8 阅读全文
posted @ 2020-04-19 21:09 VipSoft 阅读(173) 评论(0) 推荐(0)
摘要: 配置 Nginx 可以把.conf 文件拉到本地,配置好再传上去 #gzip on; upstream cluster{ server 192.168.0.113:8848; server 192.168.0.110:8848; server 192.168.0.109:8848; } server 阅读全文
posted @ 2020-04-19 21:00 VipSoft 阅读(3144) 评论(0) 推荐(0)
摘要: 三台虚机的IP地址被DHCP重分了一下1.MySQL 配置 先建一个 nacos_config 数据库 将SQL执行(方法很多,选自己喜欢的就行) 2.修改 application.properties 配置文件(application.properties.example 是示例) 先备份一下 v 阅读全文
posted @ 2020-04-19 19:00 VipSoft 阅读(1382) 评论(0) 推荐(0)
摘要: 虚机准备、Nacos 文件准备、MySQL 5.7 安装 https://nacos.io/zh-cn/docs/cluster-mode-quick-start.html 根据官网要求,至少3个节点(VM VirtualBox 比VMWare占资源要少些) 2.用 SecureCRT(工具无所谓, 阅读全文
posted @ 2020-04-13 00:11 VipSoft 阅读(2032) 评论(0) 推荐(0)
摘要: 1. 将exe 添加到右健菜单 Cmder.exe /REGISTER ALL 阅读全文
posted @ 2020-04-06 19:02 VipSoft 阅读(219) 评论(0) 推荐(0)
摘要: MySQL 项目中 SQL 脚本更新、升级方式,防止多次重复执行 Oracle 项目中 SQL 脚本更新方式 一套代码,多家部署时,在SQL脚本升级时,通过一个SQL文件给运维,避免出现SQL执行序顺出错及漏执行SQL 常用的如下: --如果不存在这条数据,就添加 IF NOT EXISTS (SE 阅读全文
posted @ 2020-04-04 20:23 VipSoft 阅读(730) 评论(0) 推荐(0)
摘要: 1. 关闭 Intellij IDEA (2018以下的版本无效),打开 workspace.xml 找到 RunDashboard 节点。添加如果配置 <option name="configurationTypes"> <set> <option value="SpringBootApplica 阅读全文
posted @ 2020-03-29 14:39 VipSoft 阅读(366) 评论(0) 推荐(0)
摘要: 开发修改代码后,无需重启idea的服务。 1 模块中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</ 阅读全文
posted @ 2020-03-29 12:58 VipSoft 阅读(289) 评论(0) 推荐(0)
摘要: 用的apache-maven-3.6.2 报错,解决方法:降级成 apache-maven-3.6.1 版本 IDEA 报 Unable to import maven project: See logs for details,到log目录下查看详细日志 2020-03-28 22:38:04,5 阅读全文
posted @ 2020-03-28 23:14 VipSoft 阅读(1833) 评论(0) 推荐(0)
摘要: 1.安装 docker-compose 将 docker-compose-Linux-x86_64 传到 /usr/local/bin 目录下,并改名为 docker-compose 2.设置权限 [root@localhost ~]# chmod +x /usr/local/bin/docker- 阅读全文
posted @ 2020-03-28 17:22 VipSoft 阅读(1911) 评论(0) 推荐(0)
摘要: 首先创建一个镜像,点击:创建一个简单的Docker镜像 1.先注册帐号 https://hub.docker.com/ 2.将镜象推上去 [root@localhost docker]# docker login [root@localhost docker]# docker tag hello-k 阅读全文
posted @ 2020-03-28 14:26 VipSoft 阅读(575) 评论(0) 推荐(0)
摘要: 1. 创建 Dockerfile 文件、index.html测试页面 [root@localhost docker]# vi Dockerfile FROM nginx:1.17.6 #基于 nginx 1.17,在build 时,会自动pull 一个 1.17.6 版本的 nginx ENV LA 阅读全文
posted @ 2020-03-28 13:35 VipSoft 阅读(2182) 评论(0) 推荐(0)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 58 下一页