![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
翻晒时光
这个作者很懒,什么都没留下…
展开
-
Springdata-jpa 实体类自动创建时间,修改时间
1. @CreatedDate @LastModifiedDate实体类加注解/*** 创建时间*/@CreatedDate@Column(name = "create_time_")private Date createTime;/*** 修改时间*/@LastModifiedDate@Column(name = "update_time_")private Date updateTime;2. @EntityListeners(AuditingEntityList...原创 2021-08-18 10:29:46 · 435 阅读 · 0 评论 -
Jpa操作数据库之原生SQL
实体类 User ,字段name, age, email. 对应数据库为 t_user.package com.boot.Repository;import org.springframework.stereotype.Repository;import javax.persistence.EntityManager;import javax.persistence.Persistence...转载 2018-10-12 14:08:43 · 222 阅读 · 0 评论 -
关于web.xml中的welcome-file-list(欢迎页)
welcome-file-list是一个配置在web.xml中的一个欢迎页,用于当用户在url中输入工程名称或者输入web容器url(如http://localhost:8080/)时直接跳转的页面.例如:<welcome-file-list> <welcome-file>index.html</welcome-file> ...转载 2019-01-03 10:53:04 · 920 阅读 · 0 评论