File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
java/com/webservice/mobile/app Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 8
8
<version >2.2.6.RELEASE</version >
9
9
<relativePath /> <!-- lookup parent from repository -->
10
10
</parent >
11
+
11
12
<groupId >com.webservice.mobile.app</groupId >
12
13
<artifactId >mobile-app-web-services</artifactId >
13
14
<version >0.0.1-SNAPSHOT</version >
15
+ <packaging >war</packaging >
14
16
<name >mobile-app-web-services</name >
15
17
<description >Demo project for Spring Boot</description >
16
18
49
51
<version >0.9.1</version >
50
52
</dependency >
51
53
54
+ <dependency >
55
+ <groupId >org.springframework.boot</groupId >
56
+ <artifactId >spring-boot-starter-tomcat</artifactId >
57
+ <scope >provided</scope >
58
+ </dependency >
59
+
52
60
<dependency >
53
61
<groupId >org.springframework.boot</groupId >
54
62
<artifactId >spring-boot-starter-test</artifactId >
Original file line number Diff line number Diff line change 3
3
import com .webservice .mobile .app .security .AppProperties ;
4
4
import org .springframework .boot .SpringApplication ;
5
5
import org .springframework .boot .autoconfigure .SpringBootApplication ;
6
+ import org .springframework .boot .builder .SpringApplicationBuilder ;
7
+ import org .springframework .boot .web .servlet .support .SpringBootServletInitializer ;
6
8
import org .springframework .context .annotation .Bean ;
7
9
import org .springframework .security .crypto .bcrypt .BCryptPasswordEncoder ;
8
10
9
11
@ SpringBootApplication
10
- public class MobileAppWebServicesApplication {
12
+ public class MobileAppWebServicesApplication extends SpringBootServletInitializer {
11
13
12
14
public static void main (String [] args ) {
13
15
14
16
SpringApplication .run (MobileAppWebServicesApplication .class , args );
15
17
}
16
18
19
+ @ Override
20
+ protected SpringApplicationBuilder configure (SpringApplicationBuilder builder ) {
21
+ return builder .sources (MobileAppWebServicesApplication .class );
22
+ }
23
+
17
24
@ Bean
18
25
public BCryptPasswordEncoder bCryptPasswordEncoder (){
19
26
return new BCryptPasswordEncoder ();
Original file line number Diff line number Diff line change 17
17
import java .util .List ;
18
18
19
19
@ RestController
20
- @ RequestMapping ("users" ) // http://localhost:8080/
20
+ @ RequestMapping ("users" ) // http://localhost:8080/mobile-app-ws/users
21
21
public class UserController {
22
22
23
23
@ Autowired
Original file line number Diff line number Diff line change
1
+ # database admin
1
2
spring.datasource.username =raj
3
+ # database pass
2
4
spring.datasource.password =raj
5
+ # database url
3
6
spring.datasource.url =jdbc:mysql://localhost:3306/photo_app
7
+ # hibernate
4
8
spring.jpa.hibernate.ddl-auto =update
9
+ # token secret resource
5
10
tokenSecret = jf9i4jgu83nfl0;
11
+ # root url
12
+ server.servlet.context-path =/mobile-app-ws
You can’t perform that action at this time.
0 commit comments