1 Star 0 Fork 0

wangyin/optaplanner-quickstarts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.adoc 1.58 KB
一键复制 编辑 原始数据 按行查看 历史

School Timetabling (Java, Spring Boot, Maven or Gradle)

Assign lessons to timeslots and rooms to produce a better schedule for teachers and students.

quarkus school timetabling screenshot

Run the application

  1. Git clone the optaplanner-quickstarts repo and navigate to this directory:

    $ git clone https://github.com/kiegroup/optaplanner-quickstarts.git
    ...
    $ cd optaplanner-quickstarts/technology/java-spring-boot
  2. Start the application with Maven:

    $ mvn spring-boot:run

    or with Gradle:

    $ gradle bootRun
  3. Visit http://localhost:8080 in your browser.

  4. Click on the Solve button.

Run the packaged application

When you’re ready to deploy the application, package the project to run as a conventional jar file.

  1. Build it with Maven:

    $ mvn package

    or with Gradle:

    $ gradle clean build
  2. Run the Maven output:

    $ java -jar target/optaplanner-spring-boot-school-timetabling-quickstart-1.0-SNAPSHOT.jar

    or the Gradle output:

    $ java -jar build/libs/optaplanner-spring-boot-school-timetabling-quickstart-1.0-SNAPSHOT.jar
    Note

    To run it on port 8081 instead, add -Dserver.port=8081.

  3. Visit http://localhost:8080 in your browser.

  4. Click on the Solve button.

More information

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/java_wangyin/optaplanner-quickstarts.git
git@gitee.com:java_wangyin/optaplanner-quickstarts.git
java_wangyin
optaplanner-quickstarts
optaplanner-quickstarts
8.x

搜索帮助