上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 通过静态方法获取,你也可以封装一个静态方法出来 @GetMapping(value = "") public String center() { ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes 阅读全文
posted @ 2020-11-10 13:57 dcrenl 阅读(3389) 评论(0) 推荐(0)
摘要: 打开 chrome://flags/ 页面 找到 Block insecure private network requests. 和 Enable Trust Tokens 两项 将其值从 Default 改为 Enable 点右下角的 ReLaunch 按钮重启浏览器 重新打开知乎 如果打不开, 阅读全文
posted @ 2020-11-06 13:21 dcrenl 阅读(12193) 评论(0) 推荐(0)
摘要: 此篇文章的真正目的应该是关于war包运行在独立tomcat下时,应如何在war包外部配置application.properties,以达到每次更新war包而不用更新配置文件的目的。百度搜素SpringBoot配置文件,基本上会得到如下信息:SpringBoot配置文件可以放置在多种路径下,不同路径 阅读全文
posted @ 2020-10-13 09:00 dcrenl 阅读(1326) 评论(0) 推荐(0)
摘要: #!/bin/bash # 文件目录 fileDir=/usr/local/project/back logDir=/usr/local/project/logs # 设置需要检测的文件路径 fileName=media-fuse-1.0.0.jar # 获取当前文件最后编辑时间戳 initTime 阅读全文
posted @ 2020-09-25 15:43 dcrenl 阅读(558) 评论(0) 推荐(0)
摘要: jar文件发布: 准备工作: 发布在springboot项目中的pom.xml文件添加如下: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-pl 阅读全文
posted @ 2020-09-24 10:42 dcrenl 阅读(1379) 评论(0) 推荐(0)
摘要: sql server支持变量所以一般使用方法如下: DECLARE @Val varchar(50) select @Val = param_value where t_param where param_name = 'log_type' if(@Val is null) begin select 阅读全文
posted @ 2020-05-26 20:30 dcrenl 阅读(2458) 评论(0) 推荐(0)
摘要: mysql的语法与sql server有很多不同,sql server执行插入更新时可以update后使用if判断返回的@@rowcount值,然后确定是否插入,mysql在语句中无法使用类似sql server的@@rowcount,但是有另外一些方式也能达到无数据插入,有数据更新的目的: 1、R 阅读全文
posted @ 2020-05-26 19:04 dcrenl 阅读(2673) 评论(0) 推荐(1)
摘要: 1 public static void ImportTempTableDataIndex(DataSet ds,string TempTableName,string strSqlConnection) 2 { 3 4 //dcrenl:获取写入连接 5 string str = strSqlCo 阅读全文
posted @ 2020-04-29 15:03 dcrenl 阅读(429) 评论(0) 推荐(0)
摘要: 一、pxm.xml中引入mybatis-generator并配置 在build节点下的plugins下添加org.mybatis.generator 示例代码如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven 阅读全文
posted @ 2020-04-18 12:29 dcrenl 阅读(1684) 评论(0) 推荐(0)
摘要: #查看数据库使用的字符集 SHOW VARIABLES LIKE 'char%' #查看当前数据库路径位置 SHOW GLOBAL VARIABLES LIKE "%datadir%" 阅读全文
posted @ 2020-04-18 09:48 dcrenl 阅读(107) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页