`
文章列表
springboot启动类中配置 @SuppressWarnings("serial") @Bean public HttpMessageConverters fastJsonHttpMessageConverters() { FastJsonHttpMessageConverter fastConverter = new FastJsonHttpMessageConverter(); FastJsonConfig fastJsonConfig = new FastJsonConfig(); fastJsonConfig ...
文件下载名乱码 String filename = new String(attachment.getAttachName().getBytes("gbk"), "iso8859-1"); 文件下载 @GetMapping("/files/{id}") @ResponseBody public ResponseEntity<Resource> serveFile(@PathVariable String id,HttpServletRequest request) throws Unsupporte ...
response.setHeader("Access-Control-Allow-Origin", "*"); Spring 4 @CrossOrigin
01 install & startup http://www.cnblogs.com/weiweictgu/p/5517717.html 02 repair https://jingyan.baidu.com/article/359911f5b5005857ff030677.html
css目标:想让body的默认高度为100% html{ height:100%; } css目标:想让<p>内文字超出部分自动换行 p{ word-break:break-all; width:200px; overflow:auto; } css目标:不想让鼠标拖动图片、文字等 img{ pointer-events:none; }
下面的javascript代码中, parseInt(diff/1000/3600/24)+"天" diff为什么除以3600呢?这是什么含义??? 距离2012建政日还剩 var ndt=new Date(2012,9,1,0,0,0,0); function countDown(){ var diff=ndt-new Date(); document.getElementById("Display").innerHTML= parseInt(diff/1000/3600/24)+"天"+parseInt(diff/1000 ...
package com.github.jdk8; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.time.temporal.UnsupportedTemporalTypeException; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedExcep ...
如果有一天,开发效率很低。 首先不要着急, 页面需要ajax数据,那么从controller到service再到dao层,一定顺序写下去,eclipse中 ctrl+1 一路向下去create 有时候,不清楚的只是一个前端api困扰,静下心来,熟悉它再继续。 没有陌生的API了,是时候试试盲写一把过!加油!! ------------------------------------------------------------------------ 摘抄代码段,本意是为了省时间。但是,其实在不熟练的情况下,是很浪费时间的。 Java代码:需要自己能够盲写出来。(不复制粘贴、不查看文 ...
Spring中javaMail通过SMTP发送邮件 Sending e-mail with Spring MVC http://jiangzhenghua.iteye.com/blog/333944 1、如果是maven项目,需要引入依赖包 [html] view plain copy 在CODE上查看代码片派生到我的代码片     <dependency>          <groupId>javax.mail</groupId>          <artifactId>mail</artifactId>  ...
J2EE tutorial Website

maven mirror

maven mirror <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> < ...
analyze upload
centOS install Maven $ sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local $ cd /usr/local $ sudo ln -s apache-maven-3.0.5 maven Next, set up Maven path system-wide: $ sudo vi /etc/profile.d/maven.sh export M2_HOME=/usr/local/maven export PATH=${M2_HOME}/bin:${PATH} Finally, log o ...
This problem is environment error for me.. my export append ;$PATH ,which should be :$PATH Following is solution: press ctrl+alt+F3   switch to code mode log in.. cd /bin /usr/bin/vim /etc/profile then modify your error configuration(maybe not /etc/profile,that you'd better look back upon your op ...
centOs install eclipse & create Desktop tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt ln -s /opt/eclipse/eclipse /usr/bin/eclipse vi /usr/share/applications/eclipse.desktop following is the content of eclipse.desktop [Desktop Entry] Encoding=UTF-8 Name=Eclipse 4.4.1 ...
Global site tag (gtag.js) - Google Analytics