Giter VIP home page Giter VIP logo

Comments (2)

sintang007 avatar sintang007 commented on August 27, 2024 1

一、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.

meijieman avatar meijieman commented on August 27, 2024

提供一点测试用的数据比较好

from favorites-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.