Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
e7b14bbb
Commit
e7b14bbb
authored
Jun 05, 2019
by
đinh thị đầm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
72500a6f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
35 deletions
+12
-35
src/main/resources/application.properties
src/main/resources/application.properties
+6
-10
src/main/resources/public/favicon.ico
src/main/resources/public/favicon.ico
+0
-0
src/main/resources/public/index.html
src/main/resources/public/index.html
+2
-18
src/main/resources/public/pages/employee/html/welcome.html
src/main/resources/public/pages/employee/html/welcome.html
+0
-3
src/main/resources/public/pages/employee/js/employeeController.js
.../resources/public/pages/employee/js/employeeController.js
+4
-4
No files found.
src/main/resources/application.properties
View file @
e7b14bbb
...
...
@@ -3,27 +3,23 @@
# DATABASE CONNECTION
# ===============================
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
<<<<<<<
HEAD
spring.datasource.url
=
jdbc:mysql://localhost:3306/quantrivanphong
spring.datasource.username
=
root
spring.datasource.password
=
ahihi123
=======
spring.datasource.url
=
jdbc:mysql://localhost:3308/quantrivanphong
spring.datasource.username
=
root
spring.datasource.password
=
123456
>>>>>>>
f6b6b75d93f4b7ab7e92c4c2398ddcf0c0f812b4
# ===============================
# JPA / HIBERNATE
# ===============================
spring.jpa.show-sql
=
true
spring.jpa.hibernate.ddl-auto
=
update
<<<<<<<
HEAD
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.MySQL57Dialect
=======
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.MySQL5InnoDBDialect
#spring.jpa.properties.hibernate.default_schema=qlns_itsol
>>>>>>>
f6b6b75d93f4b7ab7e92c4c2398ddcf0c0f812b4
## Fix Postgres JPA Error:
...
...
src/main/resources/public/favicon.ico
deleted
100644 → 0
View file @
72500a6f
3.92 KB
src/main/resources/public/index.html
View file @
e7b14bbb
<!DOCTYPE HTML>
<html>
<head>
<title>
Business_Blog a Blogging Category Flat Bootstrap Responsive Website Template | World :: w3layouts
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"keywords"
content=
"Business_Blog Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design"
/>
<script
type=
"applijewelleryion/x-javascript"
>
addEventListener
(
"
load
"
,
function
()
{
setTimeout
(
hideURLbar
,
0
);
},
false
);
function
hideURLbar
(){
window
.
scrollTo
(
0
,
1
);
}
</script>
<link
href=
"css/bootstrap.css"
rel=
'stylesheet'
type=
'text/css'
/>
<!-- Custom Theme files -->
<link
href=
"https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700"
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
"https://fonts.googleapis.com/css?family=Open+Sans"
type=
'text/css'
>
<link
href=
"css/style.css"
rel=
'stylesheet'
type=
'text/css'
/>
<!--Khai báo các thư viện-->
<script
src=
"js/jquery-3.2.1.min.js"
></script>
<script
src=
"js/bootstrap.min.js"
></script>
<script
src=
"js/angular.js"
></script>
<script
src=
"js/angular-ui-router.min.js"
></script>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
>
<!--End khai báo thư viện-->
<!--Khai báo các file js-->
<script
src=
"pages/employee/js/app.js"
></script>
<!--End khai báo các file js-->
<!-- khai báo các controllers -->
<script
src=
"pages/employee/js/employeeController.js"
></script>
<!--End khai báo controllers-->
</head>
<body
ng-app=
"myApp"
>
<!--start-main-->
<div
ui-view
></div>
...
...
src/main/resources/public/pages/employee/html/welcome.html
View file @
e7b14bbb
...
...
@@ -88,9 +88,6 @@
<td>
{{emp.phoneNumber}}
</td>
<td>
{{emp.education}}
</td>
<td>
{{emp.homeTown}}
</td>
<td><a
href=
"#"
ng-click=
"update(emp);"
>
Update
</a>
<td><a
href=
"#"
confirmed-click=
"delete(employee);"
ng-confirm-click=
" Do you want to delete this user?"
>
Delete
</a></td>
</tr>
...
...
src/main/resources/public/pages/employee/js/employeeController.js
View file @
e7b14bbb
...
...
@@ -23,11 +23,11 @@ angular.module("myApp",[]).controller("employeeController", function($scope, $ht
console
.
log
(
$scope
.
emp
);
$http
({
method
:
'
POST
'
,
url
:
"
http://localhost:808
1
/list_employee/
"
,
url
:
"
http://localhost:808
0
/list_employee/
"
,
data
:
$scope
.
emp
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$window
.
location
.
href
=
'
http://localhost:808
1
/#/tintuc
'
;
$window
.
location
.
href
=
'
http://localhost:808
0
/#/tintuc
'
;
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
});
...
...
@@ -40,14 +40,14 @@ angular.module("myApp",[]).controller("employeeController", function($scope, $ht
$scope
.
deleteEmployee
=
function
(
employee
)
{
$http
({
method
:
'
DELETE
'
,
url
:
'
http://localhost:808
1
/deleteEmployee/
'
+
employee
.
id
url
:
'
http://localhost:808
0
/deleteEmployee/
'
+
employee
.
id
}).
then
(
_success
,
_error
);
}
$http
({
method
:
'
GET
'
,
url
:
"
http://localhost:808
1
/list_employee/
"
,
url
:
"
http://localhost:808
0
/list_employee/
"
,
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
)
$scope
.
employess
=
response
.
data
;
...
...
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