Sébastien Deleuze
a2672fef9b
Remove hardcoded spring.profiles.active=mysql
2022-10-25 21:42:15 +02:00
Dave Syer
e54af39b53
Ensure MySQL works as well.
2022-10-25 21:42:15 +02:00
Sébastien Deleuze
f3a8d244b2
Upgrade to Spring Boot 3.0 RC1
2022-10-25 21:37:40 +02:00
Sébastien Deleuze
f53e0d098e
Additional setup to support native image creation.
...
- Switch to Caffeine for caching since it is supported on native unlike Ehcache
- Use latest metadata repository 0.2.3 (will be the default with Native Build Tools 0.9.15)
- Registers resource hints for WebJars and db resource directory
2022-10-25 21:37:25 +02:00
Oliver Drotbohm
1e56f6fd80
Add JAXB API to compile time dependencies.
...
Needed for JAXB annotations in the sources on Java 17.
2022-10-25 21:34:03 +02:00
Dave Syer
1315cf6e1f
Migrate to Spring Boot 3
2022-10-25 21:34:03 +02:00
Oliver Drotbohm
9ecdc1111e
Polish Thymeleaf templates.
...
Make sure we use the suggested fragment inclusion syntax. Use th:insert instead of th:include. Use simpler URI path segment templating to avoid duplication of expressions.
Avoid trailing slashes in URIs creates as upcoming Spring Boot versions will not map the trailing slash flavors of defined URI mappings.
2022-10-25 21:27:58 +02:00
Sébastien Deleuze
a5cbb8505a
Use WebJars versioned URLs ( #1099 )
...
In order to improve efficiency (see spring-projects/spring-framework#27619 )
and allow native image compatibility, this commit uses WebJars versioned URLs
which are supported out of the box on Spring Boot via /META-INF/resources
default resource location configuration, removing the need to use
webjars-locator-core dependency and WebJarsResourceResolver.
I have been able to measure a consistent 5% startup time improvement on
the JVM with that simple change on my local machine.
2022-10-16 16:12:23 +01:00
Dave Syer
89f7b4ee96
Tweak devcontainer so java and permissions work
2022-09-27 17:14:13 +00:00
Kiyeon Cho
f48227aea0
Readability improvements & Use stream instread of forEach ( #1055 )
...
* Use stream instead of forEach on find PetType logic of parse()
* Improve controllers readability
* Rollback stream instead of for-each
2022-09-24 06:40:31 +01:00
Dave Syer
7e91b98f71
Change CI step names
2022-09-15 07:47:28 +00:00
Dave Syer
70f615afd1
Add support and CI tests for Java 8
2022-09-14 17:05:06 +00:00
Martin Lippert
53343c27ab
launch java tooling in standard mode right away
2022-09-13 11:34:16 +00:00
Dave Syer
d3aabf8462
Attempt to fix codespaces
2022-09-12 11:05:37 +00:00
Dave Syer
39b3ef8b31
Ensure gradle home is set in container
2022-09-05 13:19:53 +00:00
dgcd
276880edef
Upgrade to Gradle 7.5.1 and to Spring Boot 2.7.3
2022-09-05 11:48:27 +00:00
Dave Syer
6f9dbf5a9e
Mention Gradle at top level in README
2022-08-22 11:56:41 +00:00
Shweta Tyagi
c5763046dd
Removed unnecessary semicolons ( #998 )
2022-08-22 10:59:52 +00:00
robertson-neil
a3294f2df7
Upgrade build.grade to spring-boot-starter 2.7.1 ( #1016 )
...
@pivotal-cla This is an Obvious Fix
This fixes a compilation error in PetClinicIntegrationTests
Upgrade to same version as used in pom.xml
2022-08-22 11:48:24 +01:00
Dave Syer
3f8468432d
Upgrade to Boot 2.7.1
2022-06-28 08:35:54 +01:00
Julien Dubois
4f3cbaa9aa
Add the Pivotal extension pack to devcontainers ( #994 )
...
Add Spring Boot extensions
2022-06-16 12:03:22 +01:00
Julien Dubois
5aef5c380c
use Java 17 in devcontainers
2022-06-16 12:02:31 +01:00
Julien Dubois
cbf80df5cc
remove unused import
2022-06-16 12:02:02 +01:00
Dave Syer
5ef819085b
Move vscode settings up a level
2022-06-15 17:39:31 +01:00
kvaithin
80d03f3cef
985 remove lastName method param from OwnerController
2022-06-15 16:15:15 +00:00
Tagir Valeev
2a12048e78
Update javadoc: it incorrectly said to return 'true'
2022-06-15 17:12:59 +01:00
Dave Syer
21b94869e8
Whitespace tidy
2022-06-15 17:01:47 +01:00
Dave Syer
dbcd37fe5d
Relocate deprecated annotation
2022-06-09 10:26:03 +00:00
Dave Syer
abee85939f
Add devcontainer and gitpod
...
Also works in codespaces.
2022-06-09 11:24:17 +01:00
Dave Syer
0c1fa8e8e2
Update name of deprecated config property
2022-05-19 14:08:07 +00:00
Dave Syer
1db99dbb58
Update to Spring Boot 2.7.0
2022-05-19 14:07:16 +00:00
Dave Syer
7c91e1b40b
Update gradle build boot version
2022-05-10 12:39:14 +01:00
Dave Syer
5ecaccffe9
Make postgres data.sql properly idempotent
...
Fixes #936
2022-04-19 08:43:51 +00:00
Dave Syer
d381fb658c
Use open session in view and populate model attrs
...
Open session in view was switched off accidentally a while ago. Also
the mapping changes recently meant that the changes to @Valid model
attributes were not being propagated correctly.
Fixes #946 and #947
2022-04-11 13:24:49 +00:00
win777
e870b186fb
Update readme.md
2022-03-23 07:02:29 +00:00
win777
0827bc8181
Update readme.md
2022-03-23 07:02:29 +00:00
win777
31e5aa623e
Update readme.md
...
Remove Java 8
2022-03-23 07:02:29 +00:00
Nouman Rahman
60ddc68387
Fixed Typo In PetClinicIntegrationTests
2022-03-22 12:56:35 +00:00
Dave Syer
702747f433
Update jacoco to work with Java 17
2022-02-23 12:37:21 +00:00
Dave Syer
604c9c51a3
Remove unused node.version
2022-02-23 11:15:15 +00:00
Stephane Nicoll
28ea39cb0c
Upgrade to Maven Checkstyle plugin 3.1.2
2022-02-09 16:54:37 +01:00
Stephane Nicoll
d90ecb6a0f
Upgrade to spring javaformat 0.0.31
2022-02-09 16:54:09 +01:00
Stephane Nicoll
604a9dfe1e
Upgrade to nohttp 0.0.10
2022-02-09 16:52:40 +01:00
Stephane Nicoll
cae097bf6f
Upgrade to Spring Boot 2.6.3
2022-02-09 16:52:00 +01:00
Dave Syer
9cb8dde9b8
Add section on building a container
2022-01-10 10:46:26 +00:00
Dave Syer
bdcaa85460
Alternative approach with eager fetch
2022-01-10 08:21:14 +00:00
Dave Syer
e765e3ffe1
Fix lazy loading issue in owner details
2022-01-10 08:08:43 +00:00
Dave Syer
8a28801d1a
Add actuators to Gradle build
2022-01-07 09:20:08 +00:00
Oliver Drotbohm
472575378c
Additional tweaks in aggregate model.
...
Introduced Owner.addVisit(…) to avoid that state transition to live in controller code.
Slightly polished some assertions in ClinicServiceTests.
2022-01-07 09:18:19 +00:00
Dave Syer
b559077f14
Remove manual id management in child entities
...
This is reverting a workaround for a Hibernate "feature". There's
no need for the child entities (Pet and Visit) to know about their
parent (foreign key). Hibernate can manage that just fine with a
@JoinColumn. But it needs a nullable foreign key column in the
DB schema. That's the downside. The upside is much less code in
Java.
2022-01-06 11:23:02 +00:00