spring
共 3 篇文章
Eureka Server微服务注册中心搭建
一、Eureka Server注册中心初步搭建 1. 在pom.xml文件中添加依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> </dependency> 2. 编写启动类,并在启动类上添加@EnableEurekaServer注解 @SpringBootApplication @EnableEurekaServer public class EurekaServerApplication { pub…
2017-07-16 10:01 · spring · cloud · 搭建 · Eureka
Spring Boot整合Mybatis环境搭建示例
一、Spring Boot整合Mybatis环境搭建 1. 创建maven工程spring-boot-mybatis,并在pom.xml文件中如下配置: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.3.RELEASE</version> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEnco…
Spring Boot使用参考
一、Spring Boot入门示例 1. 创建一个Maven工程 Group Id设为com.tuozixuan,ArtifactId设为springboot,Package设为com.tuozixuan.springboot 2. 在Maven工程的pom.xml文件中添加如下配置 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.3.RELEASE</version> </parent> <depende…
2017-05-07 10:34 · spring · Spring · 学习 · boot