Commit graph

294 commits

Author SHA1 Message Date
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
Antoine Rey
e74b1bc160 #141 Configure Unicode and UTF-8 MySQL database for Chinese language 2016-04-05 22:05:41 +02:00
XIAO XI LIU
e6ca8a37a5 fix issue #144: remove redundant less-than sign 2016-04-05 07:04:33 +08:00
Antoine Rey
9a150fcc45 Merge pull request #131 from ameya-pandilwar/update-link-title
Update link navigation title to make it consistent
2016-04-04 08:36:55 +02:00
Antoine Rey
7dcf82af94 Fix #78 Migrate to Bootstrap 3.x 2016-04-04 08:13:51 +02:00
Antoine Rey
78a2532b33 Merge pull request #136 from lukasz-szewc/staticFiles-jquery-url-fix
Fixes #135 Fixed url for jquery-ui.
2016-03-08 18:23:41 +01:00
lukasz-szewc
87d025f854 fixed url for jquery-ui. There was typo "query" instaed of "jquery" and file cannot be loaded 2016-03-05 18:50:45 +01:00
kadinyazilimci
e7f68999bf owners search has been case insensitive 2016-02-25 09:36:20 +10:00
Ameya Pandilwar
6f349ec2eb Update link navigation title to make it consistent 2016-02-07 18:31:11 -05:00
thinksh
0504ec9fe3 Update petclinic_db_setup_mysql.txt
Correct initialization script file's name
2016-02-03 23:19:46 -05:00
Antoine Rey
2398c4d798 Merge pull request #119 from colinbut/master
Added test classes for Controllers plus tests for PetTypeFormatter
2016-01-30 14:26:26 +01:00
Antoine Rey
c65cfb6c11 moving from Webjars to Bower #83: renaming bower_components to vendor, update readme.md 2016-01-30 14:00:12 +01:00
IHABRITANE
540d31ed21 moving from Webjars to Bower #83 2016-01-25 17:22:41 +00:00
Colin But
845d31e8ed Added test class for Controllers plus a test for PetTypeFormatter 2015-11-20 13:56:44 +00:00
Tomas Repel
e00dfb3fe0 Using jodatime LocalDate instead of DateTime for visits 2015-11-02 10:51:04 +01:00
Antoine Rey
92de6557e1 Fix #111 For pet's birthday we are now using jodatime LocalDate instead of DateTime 2015-10-28 08:57:42 +01:00
Antoine Rey
4aa89ae4e2 Fix #110 owner and pet validators failed 2015-10-28 08:30:44 +01:00
Antoine Rey
dd552f4970 Fix #108 owner update 2015-10-26 18:35:40 +01:00
Antoine Rey
3bcf84543e #77 move Session scope attributes to the request scope instead 2015-10-23 08:42:27 +02:00
Antoine Rey
6a94d7e60a Remove uncessary _method=put parameter and enable the "POST new visit" HTTP request 2015-10-21 08:25:07 +02:00
Antoine Rey
5e11b4bbcc JMeter script from Julien Dubois 2015-10-20 18:59:55 +02:00
Tomas Repel
2270e2466b Removal of redundant comments 2015-10-16 15:04:17 +02:00
Antoine Rey
09ed33a5fc #96 Reformat code with EditorConfig 2015-10-16 09:33:28 +02:00
Antoine Rey
566fdac3f9 Merge pull request #99 from trepel/removalofputmethod
Removed HTTP PUT method - it is not supported in JSP 2.3
2015-10-14 08:30:22 +02:00