Comments (2)
一、Redis配置
1、下载Redis
https://github.com/MicrosoftArchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip
2、解压D盘,重命名为redis
3、运行CMD,进入到redis目录
4、启动redis-server
运行命令:redis-server.exe redis.windows.conf
5、启动redis-client
另启动一个CMD,运行命令: redis-cli.exe -h 127.0.0.1 -p 6379
6、设置Redis访问密码
运行命令:CONFIG set requirepass "redis123"
二、Mysql设置
1、创建数据库
CREATE DATABASE favorites
CHARACTER SET 'utf8';
三、项目application-dev.properties设置
1、设置数据库访问密码,spring.datasource.password 默认为root,根据需要修改为自己的root用户密码。
2、设置Redis服务地址,spring.redis.host改为127.0.0.1
例如:
spring.datasource.password=root
spring.redis.host=127.0.0.1
四、启动项目,运行com.favorites.Application的Main方法可以了,项目启动后数据库自动就创建好了。
from favorites-web.
提供一点测试用的数据比较好
from favorites-web.
Related Issues (20)
- 新功能 HOT 1
- 请问该项目的数据库表如何创建呢?
- 这个开源项目还维护吗 HOT 1
- 部署报错443端口报已经占用了,可以调整到其它端口不? HOT 1
- timeout HOT 3
- 项目启动后访问出现502 Bad Gateway,不知道如何处理 HOT 1
- CPU占满了100% 版本1.3. 该版本有问题? HOT 2
- 502 Bad Gateway HOT 1
- 本项目是不是已经不用gradle构建工具构建了?很多架包都是低版本的,运行报错 HOT 1
- 项目在Gradle方式下运行无法加载jquery.min.js【求知情人士解答】 HOT 1
- 可以在本地window环境下docker compose的方式运行这个项目吗?【求帮忙解答】 HOT 4
- datasource url fail auto configured HOT 1
- 无法打开http://127.0.0.1:8080/ HOT 1
- 插件失效? HOT 4
- 部署方式 HOT 1
- 能不能基于这个收藏搞一个网址导航
- docker-compose deployment error
- favorites- Stored XSS defect in web,
- 502 Bad Gateway HOT 1
- 可以私有化部署吗 只有自己用 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from favorites-web.