AngularJS Contrôleur d'Erreur : $http.obtenez n'est pas une fonction de contrôleur de la section

var hsbc = angular.module('hsbc',['ngResource','ngRoute']);

de la hsbc.config(['$routeProvider','$locationProvider', function ($routeProvider, $locationProvider){

//console.log('config part working'); 
$routeProvider
    .when('/login', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/authentication/views/login.html',
        hideMenus: true
    })
    .when('/gloabltranfer', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/home/views/gloabltranfer.html'
    })
    .when('/tranferReq', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/home/views/TransferRquest.html'
    })
    .when('/reviewdetail', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/home/views/Reviewdetails.html'
    })
    .when('/confirmdetail', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/home/views/confirmdetails.html'
    })

    .when('/', {
        controller: 'hsbccontroller',
        templateUrl: 'modules/authentication/views/login.html'
    })

    .otherwise({ redirectTo: '/login' });

}]).contrôleur('hsbccontroller', ['$champ d'application",'$http','$ressource', function($champ,$ressource,$http){

    //console.log('controller part working'); 
$http.get('http://localhost:8080/1/').success(function(data) {
    alert(data);
        $scope.greeting = data;
    });

}]);

Votre contrôleur de paramètres ne sont pas dans le même ordre qu'elles ont été déclarées à l'aide de la notation de tableau. Modifier la position de $resource et $http.
il devrait être .contrôleur('hsbccontroller', ['$champ d'application",'$http','$ressource', function($champ,$http, $ressource){
Cool, Grâce à son copain de travail. Tout à fait nouveau pour travailler dans angularJs avec l'API Rest. merci beaucoup.

OriginalL'auteur Rajesh Kumar | 2015-04-26