码迷,mamicode.com
首页 >  
搜索关键字:Springboot    ( 9666个结果)
springboot核心注解
SpringBoot的核心注解是@SpringBootApplication由以下3个注解组成:@SpringBootConfiguration:它组合了Configuration注解实现了 配置文件的功能@EnableAutoConfiguration:打开自动配置功能,也可以关闭某个指定的自动配 ...
分类:编程语言   时间:2019-12-14 11:57:57    阅读次数:94
springboot整合mybatis
创建一个工程 创建entity实体层 package com.wn.springbootproject04.entity; import java.io.Serializable; public class Petbreed implements Serializable { private Int ...
分类:编程语言   时间:2019-12-14 11:55:41    阅读次数:87
SpringBoot使用JdbcTemplate
Spring对数据库的操作在jdbc上面做了深层次的封装,使用spring的注入功能,可以把DataSource注册到JdbcTemplate之中。 JdbcTemplate 是在JDBC API基础上提供了更抽象的封装,并提供了基于方法注解的事务管理能力。 通过使用SpringBoot自动配置功能 ...
分类:数据库   时间:2019-12-14 11:52:05    阅读次数:82
springboot使用jdbcTemplate案例
1 创建实体类 public class Student { private Integer stuid; private String stuname; public Integer getStuid() { return stuid; } public void setStuid(Integer ...
分类:数据库   时间:2019-12-14 11:51:16    阅读次数:99
SpringBoot整合jdbcTemplate
一、目录展示 二、导入依赖 三、配置文件 四、Student实体类 package com.zn.entity; public class Student { private Integer stu_id; private String stu_name; @Override public Stri ...
分类:数据库   时间:2019-12-14 11:49:31    阅读次数:66
springboot中实现kafa指定offset消费
kafka消费过程难免会遇到需要重新消费的场景,例如我们消费到kafka数据之后需要进行存库操作,若某一时刻数据库down了,导致kafka消费的数据无法入库,为了弥补数据库down期间的数据损失,有一种做法我们可以指定kafka消费者的offset到之前某一时间的数值,然后重新进行消费。 ...
分类:编程语言   时间:2019-12-14 11:48:43    阅读次数:221
springboot使用mybatis
1 创建entity实体类 public class Student { private Integer stuid; private String stuname; public Integer getStuid() { return stuid; } public void setStuid(I ...
分类:编程语言   时间:2019-12-14 11:48:10    阅读次数:74
SpringBoot中JdbcTemplate
步骤如下: 依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> 1.dao层 public inter ...
分类:数据库   时间:2019-12-14 11:33:56    阅读次数:96
Spring boot应用如何支持https
首先使用命令行生成一个keystore文件: keytool genkey alias tomcat keyalg RSA keystore ./jerry.keystore 保存到本地项目文件夹里: Springboot里application.properties文件,维护如下内容: serve ...
分类:编程语言   时间:2019-12-14 10:14:54    阅读次数:96
上手spring boot项目(二)之spring boot整合shiro安全框架
题记:在学习了springboot和thymeleaf之后,想完成一个项目练练手,于是使用springboot+mybatis和thymeleaf完成一个博客系统,在完成的过程中出现的一些问题,将这些问题记录下来,作为自己的学习心得。在这先感谢群主TyCoding的Tumo项目,虽然本人实在太菜了, ...
分类:编程语言   时间:2019-12-14 09:52:23    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!