こんにちは、私はばねの角度のアプリケーションを実行するとGET http://localhost:8080/cyclone/admin/admin/cycle 404 (Not Found)
を表示しています。私は第2の管理者がどこから来たのか分かりません。角度経路テンプレートが見つかりません404
アクセスURL <a href="#/cycle">Cycle</a>
とWEB-INF/views/admin/cycle.html
角度ルート設定の下のhtmlページ
App.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/cycle', {
templateUrl: 'admin/cycle.html',
controller: 'CycleController'
});
}]);
マイ春コントローラ
@Controller
@RequestMapping(value = "/admin")
public class AdminController {
@RequestMapping("/cycle.html")
public String getCarPartialPage() {
return "admin/cycle";
}
}
中に実際に 'のURLでadmin'は... – boycod3
2回追加された私は、このリンクがエラーを達成するためにあなたを助けるかもしれないと思うhttp://stackoverflow.com/questions/24388634/ ajax-routing-calling-controller-name-twice – SakthiSureshAnand