Solve conflict of server port

This commit is contained in:
7hch1a 2023-09-05 18:48:57 +08:00
commit c1c84e6930
4 changed files with 5 additions and 32 deletions

View file

@ -2,7 +2,7 @@ name: Build and Test
on:
push:
branches: [ main ]
branches: [main]
jobs:
build:
@ -16,9 +16,10 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run tests with Maven
run: mvn -B test --file pom.xml
run: mvn -B test --file pom.xml

View file

@ -1,29 +0,0 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v2
with:
java-version: ${{matrix.java}}
distribution: 'adopt'
cache: maven
- name: Build with Maven Wrapper
run: ./mvnw -B package

View file

@ -24,4 +24,4 @@ logging.level.org.springframework=INFO
# Maximum time static resources should be cached
spring.web.resources.cache.cachecontrol.max-age=12h
server.port=8081
server.port=8081

View file

@ -6,6 +6,7 @@
<body>
<h2>Veterinarians</h2>
<h2>Powered by Kean</h2>
<table id="vets" class="table table-striped">
<thead>