阅读背景:

(3)Spring-boot学习 做一个简单的带访问数据库的web项目

来源:互联网 

在pom.xml里添加以下依赖

		<!-- 引入spring data jpa   数据库持久操作 -->
		 <dependency>
			 <groupId>org.springframework.boot</groupId>
			 <artifactId>spring-boot-starter-data-jpa</artifactId>
		 </dependency>
		 <!-- Thymeleaf视图 -->
		 <dependency>
			 <groupId>org.springframework.boot</groupId>
			 <artifactId>spring-boot-starter-thymeleaf</artifactId>
		 </dependency>
		 <!-- h2 数据库 -->
		 <dependency>
			 <groupId>com.h2database</groupId>
			 <artifactId>h2</artifactId>
		 </dependency>		<!-- 引入spring data jpa  



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: