From 4d54bc955f4415a39e14b3dc91a4d1aa8673c39e Mon Sep 17 00:00:00 2001 From: yidao620 Date: Sat, 3 Mar 2018 16:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=9A=84=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pos/dao/repository/impl/ArticleDAO.java | 2 -- .../src/main/resources/application.yml | 4 ---- .../src/main/resources/sql/schema.sql | 18 ------------------ 3 files changed, 24 deletions(-) delete mode 100644 springboot-mongodb/src/main/resources/sql/schema.sql diff --git a/springboot-hibernate/src/main/java/com/xncoding/pos/dao/repository/impl/ArticleDAO.java b/springboot-hibernate/src/main/java/com/xncoding/pos/dao/repository/impl/ArticleDAO.java index d598c92..c8b9ad0 100644 --- a/springboot-hibernate/src/main/java/com/xncoding/pos/dao/repository/impl/ArticleDAO.java +++ b/springboot-hibernate/src/main/java/com/xncoding/pos/dao/repository/impl/ArticleDAO.java @@ -7,7 +7,6 @@ import javax.persistence.PersistenceContext; import com.xncoding.pos.dao.entity.Article; import com.xncoding.pos.dao.repository.IArticleDAO; import org.springframework.stereotype.Repository; -import org.springframework.transaction.annotation.Transactional; /** * ArticleDAO @@ -16,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional; * @version 1.0 * @since 2018/3/2 */ -@Transactional @Repository public class ArticleDAO implements IArticleDAO { @PersistenceContext diff --git a/springboot-hibernate/src/main/resources/application.yml b/springboot-hibernate/src/main/resources/application.yml index 9a2d01e..74c44ec 100644 --- a/springboot-hibernate/src/main/resources/application.yml +++ b/springboot-hibernate/src/main/resources/application.yml @@ -29,8 +29,6 @@ spring: url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: 123456 - thymeleaf: - cache: false logging: level: @@ -51,8 +49,6 @@ spring: url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: 123456 - thymeleaf: - cache: false logging: level: diff --git a/springboot-mongodb/src/main/resources/sql/schema.sql b/springboot-mongodb/src/main/resources/sql/schema.sql deleted file mode 100644 index d05f38b..0000000 --- a/springboot-mongodb/src/main/resources/sql/schema.sql +++ /dev/null @@ -1,18 +0,0 @@ --- Dumping database structure for concretepage -CREATE DATABASE IF NOT EXISTS `pos` default charset utf8 COLLATE utf8_general_ci; -SET FOREIGN_KEY_CHECKS=0; -USE `pos`; --- Dumping structure for table concretepage.articles -CREATE TABLE IF NOT EXISTS `articles` ( - `article_id` int(5) NOT NULL AUTO_INCREMENT, - `title` varchar(200) NOT NULL, - `category` varchar(100) NOT NULL, - PRIMARY KEY (`article_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章表'; - --- Dumping data for table concretepage.articles: ~3 rows (approximately) -INSERT INTO `articles` (`article_id`, `title`, `category`) VALUES - (1, 'Java Concurrency', 'Java'), - (2, 'Hibernate HQL ', 'Hibernate'), - (3, 'Spring MVC with Hibernate', 'Spring'); -