自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 springboot生成验证码

import java.awt.image.BufferedImage;import java.io.IOException;import javax.imageio.ImageIO;import javax.servlet.http.HttpServletResponse;import javax.servlet.http.HttpSession;import org.springframework.beans.factory.annotation.Autowired;import org.s

2021-03-03 22:15:34 181 1

原创 log4j_back.properties

Global logging configuration#在开发环境下日志级别要设置成DEBUG,生产环境设置成info或errorlog4j.rootLogger=DEBUG, stdoutConsole output…log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layo

2021-02-10 19:42:03 92

原创 springmvc的日期格式转换

import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;/**自定义类型转换器*/public class DateConvert implements Converter<String, Date> {@Overridepublic Date convert(String s) {if (s ==

2021-02-10 19:31:43 155

原创 springMVC文件的上传和下载

springMVC的文件上传和下载package com.spring1;import org.springframework.http.HttpHeaders;import org.springframework.http.HttpStatus;import org.springframework.http.MediaType;import org.springframework.http.ResponseEntity;import org.springframework.stereotype

2021-02-10 13:14:40 86

原创 springboot整合mybatis时mapper目录接口不能注入

今天在学springboot与mybatis整合的时候出了mapper目录下的接口不能用 @Autowired注入情况,路径也都配置了,也在主启动类上加了@MapperScan(“com.example.demo_sts2.mapper”)注解。但还是报不能注入的错误。控制台报如图错误:我的工程目录是这样的:解决方案:可以这pom.xml文件中的build标签中加入如下内容: <resources> <resource>

2021-02-02 14:45:07 443 1

原创 springboot项目浏览器输入URL找不到资源问题

今天初在学springboot的时候发现在浏览器输入对应的URL后居然不能得到想要的结果,而是显示无法访问此页面,localhost已拒绝。我检查了requestMapping对应的路径,是对的,没有输入错误。然后想了想,我的代码没有错误,路径也没有错误,到底是哪里错了呢?然后看了控制台显示tomcat端口号为8081,而我在浏览器上输入的是8888。发现了错误,原来是我的application.properties和application.yml文件都指定了端口号,而application.prop

2021-01-31 17:08:11 4553

原创 mysql连接出错,报The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more than one time

java.sql.SQLException: The server time zone value ‘�й���׼ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specific time zone valu

2021-01-31 10:33:21 167

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除