加载中
spring cache 简单使用说明加入门 之增删改查的使用

把spring cache 集成到项目,需要对数据进行增删改查操作,spring cache提供了一整套注解用于cache中数据的操作: @Cacheable: 查询的时候如果缓存中存在则直接走缓存,如果缓存中不存在,则...

2018/01/22 15:34
1.5K
halo.validate jquery.validate 形式的后端验证方式

#halo.validate     @Validate(rules = {              @Rule(value = "required:true", message = "用户名不能为空"),              @Rule(value = "checkUsernameExists:"...

2017/06/16 15:03
159
spring data jpa 之CrudRepository接口

public interface CrudRepository<T, ID extends Serializable> extends Repository<T, ID> { <S extends T> S save(S entity); //保存实体 T findOne(ID primaryKey); ...

2017/06/07 10:34
2.4K
Spring JPA 使用@CreatedDate、@CreatedBy、@LastModifiedDate、@LastModifiedBy 自动生成时间和修改者

JPA Audit 在spring jpa中,支持在字段或者方法上进行注解@CreatedDate、@CreatedBy、@LastModifiedDate、@LastModifiedBy,从字面意思可以很清楚的了解,这几个注解的用处。 @CreatedDate 表...

@SpringBootApplication的使用

@SpringBootApplication 默认是以下三个注解的集合 @Configuration @EnableAutoConfiguration @ComponentScan。 @Configuration :这个注解搭配@Bean可以像xml配置中生成一个bean实例 <b...

2017/05/22 14:51
167
车辆调度

最近在做一个这样的系统,所以想简单的去分析了一下

2017/04/19 10:48
1.4K
设计模式 (工厂方法设计模式)

工厂方法设计模式分为简单工厂,抽象工厂,工厂方法设计模式

spring data jpa 使用总结

查询sql @Query (value=“”) 编写sql语句的时候 1.会使用三种替换变量方式比如: @Query (value=“{sql}”) List<Admin> findByUserId(Long userId); sql: 1.select * from sys_admin ...

castException

在项目https://git.oschina.net/halo/halo.back.control 部署的时候 我采用 jdk1.7 maven 3.3.9 json是1.2.15的时候。ajax请求后台传输json 对象 对象中存在long 接收的字段,但是ajax请求的...

2017/01/03 14:22
27
spring data jpa pageable配置

pageable <bean     class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">     <property name="customArgumentResolvers">       <list>         <bean         ...

spring boot 接触有感

最近在做一个spring 的项目,然后想把spring的项目转换成boot项目,其中有问题,也有体会。 体会最好的是,boot把所有的可继承的都变成了参数配置,正所谓约定优于配置。在这里我觉得很好的提...

freemarker 时间返回 jodaitme 类型处理

import org.joda.time.base.AbstractInstant; import freemarker.template.DefaultObjectWrapper; import freemarker.template.SimpleDate; import freemarker.template.TemplateDateModel;...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部