03 2017 档案
摘要:场景:当我们在开发库修改表结构之后,需要把这些表结构的变化同步更新到生产库,这时候可以在Navicat中copy表结构变更的SQL语句。 当你点击了“设计表”进行修改表结构,在保存表结构之前点击“SQL预览”,你将会看到你的所有操作生成了SQL语句。 注意:如果你保存了表结构,“SQL预览”下的内容
阅读全文
摘要:连接客户端 ./redis-cli -h 127.0.0.1 -p 6379 验证密码 auth password 查看所有信息 info 查看连接数 info clients 查看最大连接数 config get maxclients 连接情况统计 info stats
阅读全文
摘要:Properties properties = new Properties();InputStream in = ClassLoader.class.getResourceAsStream("/config/application-time.properties"); if (in == null
阅读全文
摘要:原因是driverDelegateClass配置错误。
阅读全文
摘要:-- 显示创表语句show create table bsd_promotion_inventory_limit; -- 显示表索引show index from bsd_promotion_inventory_limit; -- 删除索引alter table bsd_promotion_inve
阅读全文
摘要:一、#{beanID['propertiesName']}方式 二、${'propertiesName'}方式
阅读全文
摘要:进入nexus管理界面 默认用户名密码:admin/admin123 在左侧Views/Repositories中选择Repositories,然后在右侧的面板中选择3rd party,在下方artifact Upload上传jar包
阅读全文
摘要:转载自:http://www.z4zr.com/page/1006.html CentOS7用firewall命令“替代”了iptables。在这里我们需要区分“iptables服务”和“iptables命令”。虽然firewalld是替代提供的防火墙管理iptables服务,但是它仍然使用ipta
阅读全文
摘要:下载Mysql安装包 wget http://cdn.mysql.com/archives/mysql-5.6/mysql-5.6.26-linux-glibc2.5-x86_64.tar.gz 2、把下载的安装包移动到/usr/local/下。 3、解压 tar -zxvf mysql-5.6.x
阅读全文
摘要:在线下载JDK 1.7 cd /opt/soft wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.c
阅读全文
摘要:打开sourcetree 点击edit按钮,在文件中加入如下内容。*.iws*.iml*.iprtarget/.settings.project.classpath.externalToolBuilders*.class*svn/.idea/*.jar~*
阅读全文
摘要:计算两个日期的差值 1、计算当前日期与目标日期相差天数,下面例子中当前日期未2017/3/19 2、列增加数据条
阅读全文
摘要:SpringBoot应用程序启动类
阅读全文
摘要:1、引入swagger需要的java类库 2、引入SwaggerConfig.java类,并配置 3、配置Controller接口注解 4、配置实体注解 swagger实体类注释 swagger实体类中隐藏属性 @ApiModelProperty(hidden = true) swagger实体属性
阅读全文
摘要:1、用maven打包成war包 2、将war包用zip方式打开,删除里面的tomcat-embed相关的4个包,删除spring-boot-tomcat包 3、将删除了tomcat相关嵌入包后的war包拷贝到tomcat下运行。
阅读全文

浙公网安备 33010602011771号