Spring Boot 2 Rest Api Example

摘要: 以下,将以一个post、get返回json数据格式的例子来讲解Rest Apis。 1. Maven Dependencies. 最重要的是 spring-boot-starter-parent 和 spring-boot-starter-web。 Starter web 依赖包含了spring-w 阅读全文
posted @ 2019-07-05 08:38 chenqr11 阅读(232) 评论(0) 推荐(0)

Spring boot hibernate Configuration Example

摘要: 1. pom.xml spring-boot-starter-data-jpa 包含了 spring data, hibernate, HikariCP, JPA API, JPA Implementation (默认为hibernate), JDBC和其他库. h2数据库应用 2. Create 阅读全文
posted @ 2019-07-05 01:13 chenqr11 阅读(401) 评论(0) 推荐(0)

Springboot War Packaging Example

摘要: 默认情况,springboot 默认打包形式是 jar。但有些服务像JBoss, weblogic, 或者tomcat需要的是war包。 1. 在pomx.xml声明war包 阅读全文
posted @ 2019-07-05 00:56 chenqr11 阅读(259) 评论(0) 推荐(0)