摘要: (1)首先,在springboot项目pom.xml中引入redis依赖 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependenc 阅读全文
posted @ 2018-01-31 17:22 迷途_小羔羊 阅读(397) 评论(0) 推荐(0) 编辑
摘要: @SpringBootApplication@EnableTransactionManagement //添加事务管理需要的注解@ServletComponentScan("com.chaojimanong.shop.web") //扫描过滤器@MapperScan("com.chaojimanon 阅读全文
posted @ 2018-01-31 17:17 迷途_小羔羊 阅读(5589) 评论(0) 推荐(0) 编辑
摘要: server.port:8088 spring.datasource.driverClassName=com.mysql.jdbc.Driverspring.datasource.url=jdbc:mysql://172.13.21.22:3306/shop_db?useUnicode=true&c 阅读全文
posted @ 2018-01-31 17:11 迷途_小羔羊 阅读(411) 评论(0) 推荐(0) 编辑
摘要: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2018-01-31 17:10 迷途_小羔羊 阅读(2419) 评论(0) 推荐(0) 编辑
摘要: 一.单表增删改查 阅读全文
posted @ 2018-01-31 16:50 迷途_小羔羊 阅读(2468) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XML 阅读全文
posted @ 2018-01-31 16:36 迷途_小羔羊 阅读(3522) 评论(0) 推荐(0) 编辑