From 4c6b19b91dbc73e586db52310927c1990116c91f Mon Sep 17 00:00:00 2001 From: DOHA Date: Tue, 10 Nov 2015 22:18:53 +0200 Subject: [PATCH] minor fix --- .../src/main/resources/application.properties | 4 ++-- .../src/main/resources/application.properties | 3 ++- .../src/main/resources/application.properties | 4 ++-- .../src/main/resources/templates/header.html | 6 +++--- .../src/main/resources/application.properties | 4 ++-- .../src/main/resources/templates/header.html | 4 ++-- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/spring-security-oauth/spring-security-oauth-resource/src/main/resources/application.properties b/spring-security-oauth/spring-security-oauth-resource/src/main/resources/application.properties index 294f69c54e..62a10d1751 100644 --- a/spring-security-oauth/spring-security-oauth-resource/src/main/resources/application.properties +++ b/spring-security-oauth/spring-security-oauth-resource/src/main/resources/application.properties @@ -1,2 +1,2 @@ -#server.contextPath=/resource -#server.port=8081 \ No newline at end of file +server.contextPath=/spring-security-oauth-resource +server.port=8081 \ No newline at end of file diff --git a/spring-security-oauth/spring-security-oauth-server/src/main/resources/application.properties b/spring-security-oauth/spring-security-oauth-server/src/main/resources/application.properties index b7465f46b4..e33e7dabf6 100644 --- a/spring-security-oauth/spring-security-oauth-server/src/main/resources/application.properties +++ b/spring-security-oauth/spring-security-oauth-server/src/main/resources/application.properties @@ -1 +1,2 @@ -#server.contextPath=/server \ No newline at end of file +server.contextPath=/spring-security-oauth-server +server.port=8081 \ No newline at end of file diff --git a/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/application.properties b/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/application.properties index 84ffdbb9ad..33de0adb88 100644 --- a/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/application.properties +++ b/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/application.properties @@ -1,2 +1,2 @@ -#server.context-path=/ui -#server.port=8080 \ No newline at end of file +server.contextPath=/spring-security-oauth-ui-implicit +server.port=8081 \ No newline at end of file diff --git a/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/templates/header.html b/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/templates/header.html index 7705f43403..f56ff0ce99 100644 --- a/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/templates/header.html +++ b/spring-security-oauth/spring-security-oauth-ui-implicit/src/main/resources/templates/header.html @@ -10,9 +10,9 @@ @@ -44,7 +44,7 @@ app.controller('mainCtrl', function($scope,$resource,$http) { }); $scope.foo = {id:0 , name:"sample foo"}; - $scope.foos = $resource("http://localhost:8080/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'}); + $scope.foos = $resource("http://localhost:8081/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'}); $scope.getFoo = function(){ $scope.foo = $scope.foos.get({fooId:$scope.foo.id}); diff --git a/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/application.properties b/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/application.properties index 84ffdbb9ad..e76a587680 100644 --- a/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/application.properties +++ b/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/application.properties @@ -1,2 +1,2 @@ -#server.context-path=/ui -#server.port=8080 \ No newline at end of file +server.contextPath=/spring-security-oauth-ui-password +server.port=8081 \ No newline at end of file diff --git a/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/templates/header.html b/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/templates/header.html index 2a276e5d63..0bfe086bf1 100644 --- a/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/templates/header.html +++ b/spring-security-oauth/spring-security-oauth-ui-password/src/main/resources/templates/header.html @@ -22,7 +22,7 @@ var app = angular.module('myApp', ["ngResource","ngRoute","ngCookies"]); app.controller('mainCtrl', function($scope,$resource,$http,$httpParamSerializer,$cookies) { $scope.foo = {id:0 , name:"sample foo"}; - $scope.foos = $resource("http://localhost:8080/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'}); + $scope.foos = $resource("http://localhost:8081/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'}); $scope.getFoo = function(){ $scope.foo = $scope.foos.get({fooId:$scope.foo.id}); @@ -50,7 +50,7 @@ app.controller('mainCtrl', function($scope,$resource,$http,$httpParamSerializer, $scope.login = function() { var req = { method: 'POST', - url: "http://localhost:8080/spring-security-oauth-server/oauth/token", + url: "http://localhost:8081/spring-security-oauth-server/oauth/token", headers: { "Authorization": "Basic " + $scope.encoded, "Content-type": "application/x-www-form-urlencoded; charset=utf-8"