摘要: idea启动tomcat后乱码了,并且,idea的各种编码都是设置的为UTF-8,但是中文就是乱码了。 解决方法: 进入idea的安装目录, 进入bin目录下。找到idea.exe.vmoptions这个文件 和 idea64.exe.vmoptions, 在两个文件的最后一行加入-Dfile.en 阅读全文
posted @ 2020-01-07 14:09 1456710017 阅读(656) 评论(0) 推荐(1) 编辑
摘要: webstorm局域网调试 can accept external connection不可勾选 can accept external connection不可点击,更改为4位端口号 重开设置 还不行就重开idea 阅读全文
posted @ 2020-01-07 14:08 1456710017 阅读(1645) 评论(0) 推荐(6) 编辑
摘要: MYSQL的 JDBC URL 格式 for Connector/J 如下例: jdbc:mysql://[host][,failoverhost...][:port]/[database] »[?propertyName1][=propertyValue1][&propertyName2][=pr 阅读全文
posted @ 2020-01-05 22:10 1456710017 阅读(4203) 评论(0) 推荐(10) 编辑
摘要: 解决方法一: @RequestMapping(value="/getphone",produces = "text/plain;charset=utf-8") /**输入手机号码后判断手机号是否存在*/ @RequestMapping(value="/getphone",produces = "te 阅读全文
posted @ 2020-01-05 22:06 1456710017 阅读(1020) 评论(0) 推荐(2) 编辑
摘要: /** * 通用的返回的类 * */ public class Result { //状态码 100-成功 200-失败 private int code; //提示信息 private String msg; //用户要返回给浏览器的数据 private Map<String, Object> e 阅读全文
posted @ 2020-01-05 22:04 1456710017 阅读(690) 评论(0) 推荐(1) 编辑
摘要: 进入idea的安装目录, 进入bin目录下。找到idea.exe.vmoptions这个文件 和 idea64.exe.vmoptions, 在最后一行加入-Dfile.encoding=UTF-8,两个文件最好都加上。 阅读全文
posted @ 2020-01-05 22:03 1456710017 阅读(263) 评论(0) 推荐(0) 编辑
摘要: [ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project ssmDemo: Execution default 阅读全文
posted @ 2020-01-05 17:40 1456710017 阅读(2753) 评论(0) 推荐(0) 编辑
摘要: IDEA Unable to import maven project: See logs for details 查看日志得 解决方法 更换maven版本 阅读全文
posted @ 2020-01-04 23:39 1456710017 阅读(875) 评论(0) 推荐(0) 编辑
摘要: <?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/12/9 * Time: 16:17 */ $host="127.0.0.1"; $username="root"; $passwd="root"; $dbname 阅读全文
posted @ 2019-12-09 20:50 1456710017 阅读(1223) 评论(0) 推荐(1) 编辑
摘要: .版本 2.支持库 spec.支持库 iconv.支持库 internet 调试输出 (到文本 (编码转换 (HTTP读文件 (请求地址), #编码_UTF_8, #编码_GBK, )))'或者调试输出 (编码_utf8到gb2312 (到文本 (HTTP读文件 (请求地址)))) 阅读全文
posted @ 2019-12-07 18:23 1456710017 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 错误: Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which 阅读全文
posted @ 2019-12-07 00:17 1456710017 阅读(1894) 评论(0) 推荐(2) 编辑
摘要: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp 问题描述, 在java应用程序中,数据表中有记录的time字段(属性为timestamp)其值为:“0000 阅读全文
posted @ 2019-12-05 17:28 1456710017 阅读(535) 评论(0) 推荐(0) 编辑
摘要: WSXC开关{1} WSXCMSg{A3DCC0E2ADEBC6A9C4DBC0C0E158B155A} wsxc日常提醒{ABA6C3BDDAA9C3D3E158B155A} #微商相册助手 3带提醒 1开 0关:密码:1456710017 阅读全文
posted @ 2019-10-25 21:44 1456710017 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-23 20:23 1456710017 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <script> function edit(idd) { // 添加模态框用到的css var httpUrl="/admin/editQRC?id="+idd; // window.open(httpUrl,'','width=500%,height=100%'); const cssEle = document.createElement('style'); cssEle.id = 'cam 阅读全文
posted @ 2019-09-23 11:40 1456710017 阅读(178) 评论(0) 推荐(0) 编辑
摘要: package com.zhengyizhan.Controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.Requ... 阅读全文
posted @ 2019-09-20 00:50 1456710017 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 结果 127.0.0.1:8090/admin/uploadQRCode 阅读全文
posted @ 2019-09-15 12:39 1456710017 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 文件上传下载 选择文件: /*** * 文件的批量上传 * @param files * @param request * @return * @throws Exception * @throws IOException */ @RequestMappin... 阅读全文
posted @ 2019-09-13 13:57 1456710017 阅读(416) 评论(0) 推荐(1) 编辑
摘要: <![CDATA[ 放内容 ]]> 阅读全文
posted @ 2019-07-09 17:22 1456710017 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 65607471647530637562667973754F74756379777E4F7A60777C796364634F747566306375643063677A4F637562797563302D3037475920232021202137303C3063677A4F627F6564797E 阅读全文
posted @ 2019-07-03 10:16 1456710017 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import java.text.NumberFormat;public class 百分比 { public static void main(String[] args) { int completed=30; int total=541; double percentage=((double) completed/(double) total)*100... 阅读全文
posted @ 2019-07-02 14:59 1456710017 阅读(4263) 评论(0) 推荐(5) 编辑
摘要: 建立一个与WEB-INF同级别的resources文件,里面存放css、js、img资源文件。 方法1、修改web.xml配置 在web.xml中找到以下配置项 加入 解决~ 方法2、spring-mvc.xml配置 在spring-mvc.xml的<beans>标签内添加以下配置 方法3、页面中引 阅读全文
posted @ 2019-06-30 20:25 1456710017 阅读(3827) 评论(1) 推荐(10) 编辑
摘要: select * from 表名 where to_days(字段名) = to_days(now()) 一、数据库设计方面1、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引; 2、应尽量避免在 where 子句中对字段进行 null 值判断, 阅读全文
posted @ 2019-06-25 11:56 1456710017 阅读(7460) 评论(0) 推荐(6) 编辑
摘要: import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; /** * Created by zheng... 阅读全文
posted @ 2019-06-24 17:50 1456710017 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 场景: 执行结果为: 可以看到,子线程还没执行完时,主线程进来了。 1.使用CountDownLatch 示例如下,我们初始化一个CountDownLatch,值为10(子线程个数),然后每次一个子线程执行完后执行一下countDown(),代码示例如下: 执行结果为: java8之前的方式写: 附 阅读全文
posted @ 2019-06-24 17:37 1456710017 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/liweisnake/article/details/12966761 今天看到一篇文章,是关于java中如何等待所有线程都执行结束,文章总结得很好,原文如下http://software.intel.com/zh-cn/blogs/2013/10/1 阅读全文
posted @ 2019-06-24 16:49 1456710017 阅读(790) 评论(0) 推荐(3) 编辑
摘要: Java多线程实现方式主要有四种:继承Thread类、实现Runnable接口、实现Callable接口通过FutureTask包装器来创建Thread线程、使用ExecutorService、Callable、Future实现有返回结果的多线程。 其中前两种方式线程执行完后都没有返回值,后两种是带 阅读全文
posted @ 2019-06-24 14:56 1456710017 阅读(7566) 评论(1) 推荐(4) 编辑
摘要: sleep() 方法的作用是在指定的毫秒数内让当前“正在执行的线程”休眠(暂停执行)。这个“正在执行的线程”是指 this.currentThread() 返回的线程。 例 1 下面通过一个案例来理解使用 sleep() 方法判断线程是否活动的标准。假设 MyThread10 线程类的代码如下: 如 阅读全文
posted @ 2019-06-24 14:36 1456710017 阅读(16575) 评论(2) 推荐(18) 编辑
摘要: endTime-startTime=总时长 阅读全文
posted @ 2019-06-23 16:34 1456710017 阅读(722) 评论(0) 推荐(0) 编辑
摘要: /** 4. 字符串的替换操作 1. String replace(char oldChar,char newChar) //将新字符替换旧字符 3. String replaceFirst(String regex,String replacement); //替换第一个满足条件的字符串 */ public class TestString3 { ... 阅读全文
posted @ 2019-06-23 12:32 1456710017 阅读(17460) 评论(2) 推荐(7) 编辑