Skip to content

Commit 114571e

Browse files
committed
Fix pagination
1 parent 219e2f2 commit 114571e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
server.contextPath=/StudentDirectory
1+
server.contextPath=/

‎spring-rest-angular-pagination/StudentDirectory/src/main/webapp/view/app.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ app.controller('StudentCtrl', ['$scope','StudentService', function ($scope,Stude
1717
paginationPageSizes: [5, 10, 20],
1818
paginationPageSize: paginationOptions.pageSize,
1919
enableColumnMenus:false,
20+
useExternalPagination: true,
2021
columnDefs: [
2122
{ name: 'studentId' },
2223
{ name: 'name' },

‎spring-rest-angular-pagination/StudentDirectory/src/test/java/org/baeldung/web/service/StudentServiceTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
public class StudentServiceTest{
2323

2424
private String getURL() {
25-
return "/StudentDirectory/student/get";
25+
return "/student/get";
2626
}
2727

2828
@Test

0 commit comments

Comments
 (0)