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
480f4a72
Commit
480f4a72
authored
Jun 05, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3c2108f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
39 deletions
+2
-39
src/main/java/com/itsol/quantrivanphong/config/WebConfig.java
...main/java/com/itsol/quantrivanphong/config/WebConfig.java
+0
-38
src/main/resources/public/pages/timesheet/timesheetController.js
...n/resources/public/pages/timesheet/timesheetController.js
+2
-1
No files found.
src/main/java/com/itsol/quantrivanphong/config/WebConfig.java
deleted
100644 → 0
View file @
3c2108f5
package
com.itsol.quantrivanphong.config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.ViewResolver
;
import
org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer
;
import
org.springframework.web.servlet.config.annotation.EnableWebMvc
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
import
org.springframework.web.servlet.view.InternalResourceViewResolver
;
@EnableWebMvc
@Configuration
@ComponentScan
(
"com.itsol.quantrivanphong"
)
public
class
WebConfig
implements
WebMvcConfigurer
{
@Override
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
registry
.
addResourceHandler
(
"/resources/public/js/**"
)
.
addResourceLocations
(
"/resources/public/js/"
);
registry
.
addResourceHandler
(
"/resources/public/css/**"
)
.
addResourceLocations
(
"/resources/public/css/"
);
registry
.
addResourceHandler
(
"/resources/public/page/**"
)
.
addResourceLocations
(
"/resources/public/page/"
);
}
@Bean
public
ViewResolver
getViewResolver
(){
InternalResourceViewResolver
resolver
=
new
InternalResourceViewResolver
();
resolver
.
setPrefix
(
"/WEB-INF/jsp/"
);
resolver
.
setSuffix
(
".jsp"
);
return
resolver
;
}
@Override
public
void
configureDefaultServletHandling
(
DefaultServletHandlerConfigurer
configurer
)
{
configurer
.
enable
();
}
}
src/main/resources/public/pages/timesheet/timesheetController.js
View file @
480f4a72
...
@@ -11,8 +11,9 @@ angular.module("MyTimeSheet",[]).controller("timesheetController", function($sco
...
@@ -11,8 +11,9 @@ angular.module("MyTimeSheet",[]).controller("timesheetController", function($sco
};
};
$http
({
$http
({
header
:
'
Access-Control-Allow-Origin: http://localhost:63342/MockProject_01/public/pages/timesheet/timesheet.html?_ijt=ee540pqfq7tplkmo9mjj447ne
'
,
method
:
'
GET
'
,
method
:
'
GET
'
,
url
:
"
http://localhost:8080/eproject/
{employee_Id}/
timesheet
"
,
url
:
"
http://localhost:8080/eproject/timesheet
"
,
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
)
console
.
log
(
response
)
$scope
.
timesheet
=
response
.
data
;
$scope
.
timesheet
=
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