码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
SpringBoot 定时任务的实现
介绍两种实现方式;配置实现和读取数据库定时任务配置实现。配置实现比较简单。直接撸代码:packagecom;importjava.util.Properties;importorg.apache.ibatis.mapping.DatabaseIdProvider;importorg.apache.ibatis.mapping.VendorDatabaseIdProvider;importorg.m
分类:编程语言   时间:2018-07-03 16:39:37    阅读次数:176
SpringBoot框架学习(一)
我没什么时间来认认真真写一个系列,只能把日常学到的东西总结巩固一下。 这篇内容: 1.自我理解的SpringBoot使用感悟。 2.一些注解的理解。 3.restful风格 4.微服务与SpringCloud 1.SpringBoot使用感悟 SpringBoot框架我才刚刚实现hello worl ...
分类:编程语言   时间:2018-07-03 15:07:09    阅读次数:142
springboot简易上传下载
1.导入上传下载依赖: 2.上传: 1)前端页面: 2)编写带到上传页面接口: 3)编写接收上传文件接口: 3.下载: 1)编写下载接口: ...
分类:编程语言   时间:2018-07-03 15:03:04    阅读次数:212
springboot 1 + 2 缓存
springboot 缓存 为了实现是在数据中查询数据还是在缓存中查询数据,在application.yml 中将mybatis 对应的mapper 包日志设置为debug 。 然后在springboot的主类上添加 @EnableCaching 启动缓存。 然后在service 类中的方法上添加上 ...
分类:编程语言   时间:2018-07-03 14:38:59    阅读次数:168
SpringBoot的其他配置(SpringBoot项目配置4)
1.SpringBoot的编码格式、文件上传大小设置 在application.xml文件中加入如下内容: 2.FastJSON 在pom.xml中加入下面的内容 在入口类中加入 ...
分类:编程语言   时间:2018-07-03 11:44:14    阅读次数:121
springboot_流程分析
springboot的两种启动方式 1 源码 最后还是new了一个SpringApplication.调用了run方法. 2 这两种方式其实是一样的 这是一个构造器,有一个可变参数列表:源 构造器调用了initialize方法,把可变参数列表传过去了 定义了一个变量 //判断是不是web环境 当这两 ...
分类:编程语言   时间:2018-07-03 00:11:32    阅读次数:207
spring-boot-mybatis
1. 功能 连接数据库,进行增删改查操作 2. 类结构图 3. 实现 #实体UserEntity #枚举 SexEnum #接口UserMapper #Application #datasource 4. 注释 4.1 加载datasource springboot会自动加载spring.datas ...
分类:编程语言   时间:2018-07-02 23:02:47    阅读次数:272
Springboot添加定时器任务
当在固定时间,比如月末生成一些报表或者一些固定任务时,我们使用定时器。 1.定时器需要在 ①启动类增加@EnableScheduling注解,使项目能够识别定时器类 ②使定时器类能够被扫描到 一般加@Compoment @Configuration 定时器为没有参数的 如果想传入参数 那么就应该设置 ...
分类:编程语言   时间:2018-07-02 20:12:22    阅读次数:218
springboot学习章节-spring常用配置
1、Scope package com.zhen.highlights_spring4.ch2.scope; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Serv ...
分类:编程语言   时间:2018-07-02 17:42:11    阅读次数:186
springboot - web项目
一:使用Thymeleaf:参考http://blog.csdn.net/u012702547/article/details/53784992#t0 1.1 引入相应的包 1.2 thymeleaf配置 1)配置类方式 @ConfigurationProperties("spring.thymel ...
分类:编程语言   时间:2018-07-02 17:12:46    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!