remove context-path

This commit is contained in:
Dapeng 2016-09-20 16:39:06 +08:00
parent dba731012d
commit 1adafc5b0b
6 changed files with 8 additions and 9 deletions

View file

@ -17,6 +17,4 @@ spring.messages.basename=messages/messages
management.contextPath=/manage
# Logging
logging.level.org.springframework=INFO
server.context-path=/petclinic
logging.level.org.springframework=INFO

View file

@ -32,7 +32,8 @@
<div ng-repeat="pet in $ctrl.owner.pets">
<h3>{{pet.name}}</h3>
<p>
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}}
{{pet.birthDate | date:'yyyy MMM dd'}} - {{pet.type.name}} -
<a href="#!/owners/{{$ctrl.owner.id}}/pets/{{pet.id}}/visits">Add Visit</a>
</p>
<h4>Visits</h4>
<p style="margin-left: 2em;" ng-repeat="visit in pet.visits">

View file

@ -5,7 +5,7 @@ angular.module('ownerForm', [
]);
angular.module("ownerForm").component("ownerForm", {
templateUrl: "/petclinic/scripts/app/owner-form/owner-form.template.html",
templateUrl: "scripts/app/owner-form/owner-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;

View file

@ -5,10 +5,10 @@ angular.module('ownerList', [
]);
angular.module("ownerList").component("ownerList", {
templateUrl: "/petclinic/scripts/app/owner-list/owner-list.template.html",
templateUrl: "scripts/app/owner-list/owner-list.template.html",
controller: ["$http", function ($http) {
var self = this;
$http.get('/petclinic/owner/list').then(function(resp) {
$http.get('owner/list').then(function(resp) {
self.owners = resp.data;
});
}]

View file

@ -5,7 +5,7 @@ angular.module('petForm', [
]);
angular.module("petForm").component("petForm", {
templateUrl: "/petclinic/scripts/app/pet-form/pet-form.template.html",
templateUrl: "scripts/app/pet-form/pet-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;
var ownerId = $routeParams.ownerId || 0;

View file

@ -5,7 +5,7 @@ angular.module('visits', [
]);
angular.module("visits").component("visits", {
templateUrl: "/petclinic/scripts/app/visits/visits.template.html",
templateUrl: "scripts/app/visits/visits.template.html",
controller: ["$http", '$routeParams', '$location', '$filter', function ($http, $routeParams, $location, $filter) {
var self = this;
var petId = $routeParams.petId || 0;