自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 MybatisPlus中关于创建时间修改日期的一些配置

数据库中添加字段 保存 然后是实体类在添加注释 @TableField(fill = FieldFill.INSERT) private LocalDateTime gmtTime; @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime gmtModified; FieldFill.INSERT 表示插入时有效 INSERT_UPDATE 插入更新时有效 最后就需要在hand

2021-08-03 12:35:02 335

原创 springboot连接Mysql

相较于配置地域spring springboot连接数据库轻松简单。 在application.yml或properties构建连接数据 mybatis.type-aliases-package=com.jason.hellospring.pojo mybatis.mapper-locations=classpath:mybatis/mapper/*.xml (properties中配置mybatis的别名、地址) spring: datasource: username: root

2021-03-15 10:44:30 65

原创 springSecurity的认证授权

@EnableWebSecurity //Enable开启xx服务 public class SecurityConfig extends WebSecurityConfigurerAdapter { //授权 @Override protected void configure(HttpSecurity http) throws Exception { //首页所有人可以访问,但是功

2021-03-11 10:24:12 64

原创 spring表单中的乱码问题

在表单中输入中文时常常出现乱码问题 这时我们需要为整个项目添加过滤器 public class EncodingFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest servletRequest, ServletR

2021-02-23 13:00:48 61 1

原创 SpringMVC中的配置

SpringMVC中的配置 首先先在web.xml文件中绑定springmvc.xml <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/ja

2021-02-21 18:44:31 34

原创 笔记

https://blog.csdn.net/qq_36188127/article/details/109370717?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161242145216780261963754%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=161242145216780261963754&biz_id=0&

2021-02-04 14:52:29 44

原创 Javeweb中下载文件的流程记录

@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // 1.要获取下载文件的路径 String realPath = "C:\\Users\\xyjsxy\\IdeaProjects\\SpringMVC\\out\\artifacts\\respond_war_exploded\\WEB-.

2021-02-04 12:55:16 53

原创 Spring中的注解

##注解说明 @Autowired 自动装配先通过类型再通过名字。如果AUTOWIRED不能唯一自动装配上属性,则需要通过@Qualifier(valuer=“xxx”) 需要添加context配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchem

2021-01-31 16:15:42 35

原创 Spring、Mybatis学习个人笔记

** 1.Pom中需要导入的配置 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframew

2021-01-31 16:12:02 46

空空如也

空空如也

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

TA关注的人

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