小的修正
This commit is contained in:
parent
eca55ce383
commit
4d54bc955f
@ -7,7 +7,6 @@ import javax.persistence.PersistenceContext;
|
|||||||
import com.xncoding.pos.dao.entity.Article;
|
import com.xncoding.pos.dao.entity.Article;
|
||||||
import com.xncoding.pos.dao.repository.IArticleDAO;
|
import com.xncoding.pos.dao.repository.IArticleDAO;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArticleDAO
|
* ArticleDAO
|
||||||
@ -16,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @since 2018/3/2
|
* @since 2018/3/2
|
||||||
*/
|
*/
|
||||||
@Transactional
|
|
||||||
@Repository
|
@Repository
|
||||||
public class ArticleDAO implements IArticleDAO {
|
public class ArticleDAO implements IArticleDAO {
|
||||||
@PersistenceContext
|
@PersistenceContext
|
||||||
|
@ -29,8 +29,6 @@ spring:
|
|||||||
url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
|
url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: 123456
|
||||||
thymeleaf:
|
|
||||||
cache: false
|
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
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
|
url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: 123456
|
||||||
thymeleaf:
|
|
||||||
cache: false
|
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
|
@ -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');
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user