Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
school-portal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Suleman
school-portal
Commits
6fb9c0b9
Commit
6fb9c0b9
authored
Jul 04, 2022
by
Muhammad Suleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted Extra Files
parent
88ce2805
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
65 deletions
+7
-65
HomeController.java
...in/java/com/school/project/controller/HomeController.java
+0
-24
application.properties
src/main/resources/application.properties
+7
-7
accessDeniedPage.html
src/main/resources/templates/accessDeniedPage.html
+0
-12
homePage.html
src/main/resources/templates/homePage.html
+0
-11
welcomPage.html
src/main/resources/templates/welcomPage.html
+0
-11
No files found.
src/main/java/com/school/project/controller/HomeController.java
deleted
100644 → 0
View file @
88ce2805
package
com
.
school
.
project
.
controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
@Controller
public
class
HomeController
{
@GetMapping
(
"/home"
)
public
String
getHomePage
()
{
return
"hello"
;
}
@GetMapping
(
"/welcome"
)
public
String
getWelcomePage
()
{
return
"welcomPage"
;
}
@GetMapping
(
"/accessDenied"
)
public
String
getAccessDeniedPage
()
{
return
"accessDeniedPage"
;
}
}
src/main/resources/application.properties
View file @
6fb9c0b9
#
#spring.jpa.hibernate.ddl-auto=update
#spring.datasource.url=jdbc:mysql://localhost:3306/schoolDataBase
#spring.datasource.username=root
#spring.datasource.password=charlie123
spring.jpa.hibernate.ddl-auto
=
update
spring.datasource.url
=
jdbc:mysql://localhost:3306/school
d
ataBase
spring.datasource.url
=
jdbc:mysql://localhost:3306/school
D
ataBase
spring.datasource.username
=
root
spring.datasource.password
=
root
spring.datasource.password
=
charlie123
#spring.jpa.hibernate.ddl-auto=update
#spring.datasource.url=jdbc:mysql://localhost:3306/schooldataBase
#spring.datasource.username=root
#spring.datasource.password=root
spring.security.user.name
=
sulemantalpur6@gmail.com
spring.security.user.password
=
charlie
...
...
src/main/resources/templates/accessDeniedPage.html
deleted
100644 → 0
View file @
88ce2805
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
charset=
"ISO-8859-1"
>
<title>
Insert title here
</title>
</head>
<body>
<h3>
You are not allowed to access this page. Please go to Welcome Page
</h3>
<a
th:href=
"@{/welcome}"
>
Welcome
</a>
<a
th:href=
"@{/logout}"
>
LOGOUT
</a>
</body>
</html>
\ No newline at end of file
src/main/resources/templates/homePage.html
deleted
100644 → 0
View file @
88ce2805
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
charset=
"ISO-8859-1"
>
<title>
Insert title here
</title>
</head>
<body>
<h3>
welcome to the Home Page
</h3>
This page is accessible to ALL.
</body>
</html>
\ No newline at end of file
src/main/resources/templates/welcomPage.html
deleted
100644 → 0
View file @
88ce2805
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<meta
charset=
"ISO-8859-1"
>
<title>
Insert title here
</title>
</head>
<body>
<h3>
Welcome Page after successful Login
</h3>
<a
th:href=
"@{/logout}"
>
LOGOUT
</a>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment