Giter Site home page Giter Site logo

backend's Introduction

Backend Project For PKU Web Course

This project is for PKU Web Course.

关于配置

电脑里需要安装Java 17、Gradle和MySQL。

如果直接运行本项目时,由于MySQL的配置会又错,因此需要自己配置!

在appplication.properties里配置MySQL。如果在本地运行MySQL时,appplication.properties的内容为如下:

spring.datasource.url=jdbc:mysql://localhost:{端口号,默认值为3306}/{table的名字}?serverTimezone=UTC&characterEncoding=UTF-8
spring.datasource.username={用户名}
spring.datasource.password={密码}

如果想换在本地运行的后端程序的端口时,在appplication.properties里加:

server.port={想要的端口}

本项目将端口设置为80。

关于运行

  1. 通过terminal进入本项目,输入./gradlew build,生成build文件夹。
  2. 进入build里的libs文件夹,会找到pku-web-0.0.1-SNAPSHOT.jar文件。
  3. 输入java -jar pku-web-0.0.1-SNAPSHOT.jar运行项目。

backend's People

Contributors

pagh2322 avatar

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.