Updated port form 8080 to 8090

This commit is contained in:
sridharts1998 2025-04-29 00:52:02 +05:30 committed by GitHub
parent 0c88f916db
commit 630e259607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@ java -jar target/*.jar
(On Windows, or if your shell doesn't expand the glob, you might need to specify the JAR file name explicitly on the command line at the end there.) (On Windows, or if your shell doesn't expand the glob, you might need to specify the JAR file name explicitly on the command line at the end there.)
You can then access the Petclinic at <http://localhost:8080/>. You can then access the Petclinic at <http://localhost:8090/>.
<img width="1042" alt="petclinic-screenshot" src="https://cloud.githubusercontent.com/assets/838318/19727082/2aee6d6c-9b8e-11e6-81fe-e889a5ddfded.png"> <img width="1042" alt="petclinic-screenshot" src="https://cloud.githubusercontent.com/assets/838318/19727082/2aee6d6c-9b8e-11e6-81fe-e889a5ddfded.png">
@ -46,7 +46,7 @@ Our issue tracker is available [here](https://github.com/spring-projects/spring-
## Database configuration ## Database configuration
In its default configuration, Petclinic uses an in-memory database (H2) which In its default configuration, Petclinic uses an in-memory database (H2) which
gets populated at startup with data. The h2 console is exposed at `http://localhost:8080/h2-console`, gets populated at startup with data. The h2 console is exposed at `http://localhost:8090/h2-console`,
and it is possible to inspect the content of the database using the `jdbc:h2:mem:<uuid>` URL. The UUID is printed at startup to the console. and it is possible to inspect the content of the database using the `jdbc:h2:mem:<uuid>` URL. The UUID is printed at startup to the console.
A similar setup is provided for MySQL and PostgreSQL if a persistent database configuration is needed. Note that whenever the database type changes, the app needs to run with a different profile: `spring.profiles.active=mysql` for MySQL or `spring.profiles.active=postgres` for PostgreSQL. See the [Spring Boot documentation](https://docs.spring.io/spring-boot/how-to/properties-and-configuration.html#howto.properties-and-configuration.set-active-spring-profiles) for more detail on how to set the active profile. A similar setup is provided for MySQL and PostgreSQL if a persistent database configuration is needed. Note that whenever the database type changes, the app needs to run with a different profile: `spring.profiles.active=mysql` for MySQL or `spring.profiles.active=postgres` for PostgreSQL. See the [Spring Boot documentation](https://docs.spring.io/spring-boot/how-to/properties-and-configuration.html#howto.properties-and-configuration.set-active-spring-profiles) for more detail on how to set the active profile.
@ -125,7 +125,7 @@ The following items should be installed in your system:
1. Navigate to the Petclinic 1. Navigate to the Petclinic
Visit [http://localhost:8080](http://localhost:8080) in your browser. Visit [http://localhost:8090](http://localhost:8090) in your browser.
## Looking for something in particular? ## Looking for something in particular?

View file

@ -7,7 +7,7 @@ spec:
type: NodePort type: NodePort
ports: ports:
- port: 80 - port: 80
targetPort: 8080 targetPort: 8090
selector: selector:
app: petclinic app: petclinic
@ -43,7 +43,7 @@ spec:
} }
ports: ports:
- name: http - name: http
containerPort: 8080 containerPort: 8090
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /livez path: /livez

View file

@ -16,7 +16,7 @@
</elementProp> </elementProp>
<elementProp name="PETCLINIC_PORT" elementType="Argument"> <elementProp name="PETCLINIC_PORT" elementType="Argument">
<stringProp name="Argument.name">PETCLINIC_PORT</stringProp> <stringProp name="Argument.name">PETCLINIC_PORT</stringProp>
<stringProp name="Argument.value">8080</stringProp> <stringProp name="Argument.value">8090</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
<elementProp name="CONTEXT_WEB" elementType="Argument"> <elementProp name="CONTEXT_WEB" elementType="Argument">