dastier
3e65dee237
fix button text in createOrUpdatePetForm.html in case of new pet (issue #252 )
2017-11-03 11:31:53 +00:00
Antoine Rey
4be8ba2c43
Replace @RequestMapping by their corresponding shortcut @GetMapping and @PostMapping
2017-11-03 11:28:12 +00:00
Aditya Ketkar
05e891cec1
Removed redundant javadoc comments
2017-11-03 11:19:20 +00:00
Jeric Bryle Sy Dy
cdbfafe077
set pet to owner to avoid null owner when user gets an error on new pet page
2017-09-21 13:31:05 +01:00
Stephane Nicoll
75912a06c5
Polish contribution
...
Closes gh-229
2017-02-17 12:30:57 +01:00
Henri Tremblay
443d35eae2
Put Ehcache back
2017-02-17 06:22:26 -05:00
Dave Syer
63dadcc07f
Make all entity fields private
...
Encapsulation is better that way (and tere is a getter for all of them
anyway).
2017-02-03 10:04:36 +00:00
Dave Syer
0a51540ad0
Fix serializability of Vet
2017-02-03 10:03:11 +00:00
Stephane Nicoll
be13722cc5
Polish
2017-02-03 08:37:02 +01:00
Stephane Nicoll
d2ec371496
Restore actuator access with Spring Boot 1.5
2017-02-03 08:36:48 +01:00
Dave Syer
80269539e2
Configure caching properly to avoid error in vets
2017-01-08 15:45:30 +00:00
Dave Syer
6da37c30d3
Use default cache configuration
2016-12-06 12:04:23 +00:00
Dave Syer
0c7db646ef
Make mysql configuration more first class
2016-12-05 21:50:29 +00:00
Dave Syer
8b76a54814
Update mysql readme
2016-12-05 12:05:01 +00:00
Oscar Utbult
837483f1d0
Fix incorrect glyphicon name
2016-12-05 11:46:01 +00:00
Kristof Neirynck
61be1bac41
Fix #207 set pet owner when for has an error
2016-12-05 11:45:37 +00:00
Kristof Neirynck
ca2a66500f
Correct view as xml url
2016-12-05 11:45:04 +00:00
Oscar Utbult
7dcae7cc86
Fix Javadoc error
2016-12-05 11:44:37 +00:00
Oscar Utbult
706c6fc647
Replace anonymous class with lambda
2016-12-05 11:44:14 +00:00
Dave Syer
131a588e09
Use wro4j instead of lesscss plugin
...
It's better maintained and it seems to provide more features
as well.
2016-11-17 10:51:36 +00:00
Dave Syer
83ff9a50e3
Modularize and migrate to aggregate-oriented domain
...
Vet, Owner, Visit. The Visit "aggregate" is a little artificial
but it demonstrates a useful point about not holding on to
references of "parent" (reference data) objects, i.e. the Visit has
an Integer petId, instead of a Pet field. In principle this app is
now almost ready to migrate to multiple services if anyone wanted
to do that.
2016-11-14 15:36:21 +00:00
Dave Syer
095b1a35d9
Move util class to test code
2016-11-10 17:45:54 +00:00
Dave Syer
e38a9feebe
Convert to jar with thymeleaf
2016-11-10 17:22:02 +00:00
Antoine Rey
d69b89691c
Fix #171 Jetty 9 support by removing Dandelion
2016-10-08 09:50:04 +02:00
Antoine Rey
f78ee5d76e
Using the @CacheResult JSR-107 JCache annotation
2016-10-06 20:01:50 +02:00
Antoine Rey
b889abbe7f
Replace SpringJUnit4ClassRunner by SpringRunner
2016-10-01 13:00:25 +02:00
Dapeng
a9b6565fcf
Remove dependency with joda time to simplify the project dependencies
2016-09-25 18:25:33 +02:00
Antoine Rey
d189dbf4be
Merge pull request #182 from snicoll/ehcache3
...
Upgrade to Ehcache 3 and Java config
2016-08-29 22:18:22 +02:00
Stephane Nicoll
a41b83a2fd
Upgrade to Ehcache 3
...
I saw on twitter the reference of an article (in french):
http://javaetmoi.com/2016/08/migrer-vers-spring-boot/
That article concludes with something along the lines of "Besides the
EhCache and Maven configuration, Petclinic does not hold a single line
of XML anymore".
Looking at the code, we can remove more XML if you want. This PR migrates
the cache infrastructure to EhCache 3 and JCache (JSR-107). This also
reduces the number of dependencies.
2016-08-29 18:48:12 +02:00
Antoine Rey
b96e1093d3
Add a Dockefile and configure the docker-maven-plugin
2016-08-29 18:47:47 +02:00
Antoine Rey
864580702f
Remove unused properties
2016-08-23 19:45:00 +02:00
Antoine Rey
620141da5d
Convert Controler's integration test to unit test
2016-08-19 18:29:53 +02:00
Antoine Rey
1080006218
Merging AbstractClinicServiceTests and ClinicServiceSpringDataJpaTests then using the Spring Boot @DataJpaTest annotation
2016-08-19 18:29:17 +02:00
Antoine Rey
2637f65b90
Upgrade to Spring Boot 1.4.0
2016-08-17 18:31:38 +02:00
AndrejGajdos
dbd1e54492
responsive menu fix
...
responsive menu fix - data-target attribute added
2016-08-16 19:09:35 +02:00
Antoine Rey
bbc1c8bb80
Add some missing trimDirectiveWhitespaces on JSPs
2016-06-30 19:07:54 +02:00
Antoine Rey
616386803c
Revert "Make jar not war"
...
This reverts commit be048ae2ac
.
2016-06-28 20:08:26 +02:00
Antoine Rey
be048ae2ac
Make jar not war
2016-06-28 20:01:32 +02:00
Dapeng
eb6f9343ad
migrate to webjars for frontend resource management
...
- petclinic.css is now auto generated, therefore it is put in the
ignore list
- vendor folder is removed in favour of webjars
- remove several maven dependencies which are already managed by spring
boot
- unfortunately, lesscss maven plugin does NOT support importing from
classpath, as a result, bootstrap is unpacked during process-resources
phase, we need need to find a better resolution
- remove bower integration
2016-06-28 18:02:53 +08:00
Dapeng
077f4eb105
simplify content negotiation setup
...
- remove custom xml view, use springboot builtin xml view
- remove oxm maven dependency
- remove json-simple maven dependency (seems not relevant anymore)
- update vetsXml test using xpath
2016-06-28 11:05:42 +08:00
Dapeng
aa8cc431eb
simplify jsp layout management
...
abstract the page layout into “layout.tag”
2016-06-27 17:06:47 +08:00
Dapeng
beb46b2b3b
support switching db init script at deployment
2016-06-27 12:35:37 +08:00
Antoine Rey
1f42b7615d
#164 Set Dandelion active profile to "prod" when Spring production profile is enabled
2016-06-25 15:27:37 +02:00
Antoine Rey
4da41dbbda
#164 Disable cache configuration for unit tests
2016-06-24 21:18:38 +02:00
Antoine Rey
e9f5f7b541
#164 Add main class required by the spring-boot-maven-plugin
2016-06-23 19:46:56 +02:00
Antoine Rey
a6e81a51a0
#164 Spring Boot version of Petclinic ready to deploy to an external web container (ie Tomcat)
2016-06-23 19:42:02 +02:00
Attilio
ca755be44a
Improvements in VisitRepository.findByPetId implementation.
...
- In the Jdbc implementation: pets belonging to a visit were not added.
- In the Jpa implementation: query variable was wrong.
- Test case: AbstractClinicServiceTests.shouldFindVisitsByPetId()
2016-06-15 22:46:47 +02:00
Antoine Rey
817fabd9ea
Fix #155 Fix logback + JMX memory leak on web application reload
2016-06-06 18:37:44 +02:00
Faisal Hameed
ad3d322fc6
Fising squid:S2970, squid:S1192, squid:S1488, squid:UselessParenthesesCheck
2016-05-13 14:59:46 +05:00
Antoine Rey
44b591f537
Using Spring Boot Dataflow UI graphic theme
2016-04-08 18:23:18 +02:00