随笔-
109
文章-
0
评论-
4
摘要:生产者 结构 导入依赖 <dependency> <groupId>com.101tec</groupId> <artifactId>zkclient</artifactId> <version>0.10</version> </dependency> <dependency> <groupId>c 阅读全文
posted @ 2019-12-14 14:47 wnwn 阅读 (5) 评论 (0)
编辑
摘要:创建一个工程 导入依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <de 阅读全文
posted @ 2019-12-14 11:15 wnwn 阅读 (6) 评论 (0)
编辑
摘要:Spring对数据库的操作在jdbc上面做了深层次的封装,使用spring的注入功能,可以把DataSource注册到JdbcTemplate之中。 JdbcTemplate 是在JDBC API基础上提供了更抽象的封装,并提供了基于方法注解的事务管理能力。 通过使用SpringBoot自动配置功能 阅读全文
posted @ 2019-12-14 09:51 wnwn 阅读 (19) 评论 (0)
编辑

摘要:数据库 数据库名称为Product; 创建api子工程,项目名为springcloud_api Product实体类 public class Product implements Serializable { private Integer pid; private String productN 阅读全文
posted @ 2019-12-13 09:08 wnwn 阅读 (4) 评论 (0)
编辑

摘要:步骤一:导入依赖 <!-- 添加thymeleaf模版的依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </d 阅读全文
posted @ 2019-12-12 14:48 wnwn 阅读 (8) 评论 (0)
编辑
摘要:JPA是什么 JPA是Java Persistence API的简称,中文名Java持久层API,是JDK 5.0注解或XML描述对象-关系表的映射关系,并将运行期的实体对象持久化到数据库中。 JPA可以极大的简化JPA的写法,可以爱几乎不用写实现的情况下,实现对数据库的访问操作。除了CRUD外,还 阅读全文
posted @ 2019-12-12 14:23 wnwn 阅读 (7) 评论 (0)
编辑

摘要:导入依赖 <!-- 添加freemarker模版的依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dep 阅读全文
posted @ 2019-12-10 13:34 wnwn 阅读 (8) 评论 (0)
编辑
摘要:springboot简介 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。 springboot特性 1. SpringBoot并不是对Spring功能 阅读全文
posted @ 2019-12-10 10:46 wnwn 阅读 (7) 评论 (0)
编辑
