File tree Expand file tree Collapse file tree 5 files changed +30
-13
lines changed Expand file tree Collapse file tree 5 files changed +30
-13
lines changed Original file line number Diff line number Diff line change 40
40
<artifactId >spring-boot-starter-data-jpa</artifactId >
41
41
</dependency >
42
42
43
+ <!-- <dependency>
44
+ <groupId>org.springframework.boot</groupId>
45
+ <artifactId>spring-boot-starter-tomcat</artifactId>
46
+ <scope>provided</scope>
47
+ </dependency>-->
48
+
43
49
<dependency >
44
- <groupId >mysql </groupId >
45
- <artifactId >mysql-connector-java </artifactId >
46
- <version >6.0.4 </version >
50
+ <groupId >org.postgresql </groupId >
51
+ <artifactId >postgresql </artifactId >
52
+ <version >9.4.1211.jre7 </version >
47
53
</dependency >
48
54
49
-
50
55
<dependency >
51
56
<groupId >org.springframework.boot</groupId >
52
57
<artifactId >spring-boot-starter-test</artifactId >
71
76
</plugins >
72
77
</build >
73
78
74
-
75
79
</project >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+ import org .springframework .boot .builder .SpringApplicationBuilder ;
6
+ import org .springframework .boot .web .support .SpringBootServletInitializer ;
5
7
import org .springframework .scheduling .annotation .EnableScheduling ;
6
8
7
9
@ EnableScheduling
8
10
@ SpringBootApplication
9
- public class JobParserApplication {
11
+ public class JobParserApplication extends SpringBootServletInitializer {
10
12
11
13
public static void main (String [] args ) {
12
14
SpringApplication .run (JobParserApplication .class , args );
15
+ }
13
16
17
+ @ Override
18
+ protected SpringApplicationBuilder configure (SpringApplicationBuilder builder ) {
19
+ return builder .sources (JobParserApplication .class );
14
20
}
15
21
}
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ public class Doc {
12
12
13
13
@ Id
14
14
String name ;
15
- @ Column (length = Integer .MAX_VALUE )
15
+ // @Column(length = Integer.MAX_VALUE)
16
+ @ Column (length = 10485760 )
16
17
String doc ;
17
18
18
19
public Doc () {
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ public class Job {
15
15
@ Id
16
16
private String url ;
17
17
private String title ;
18
- @ Column (length = Integer .MAX_VALUE )
18
+ // @Column(length = Integer.MAX_VALUE)
19
+ @ Column (length = 10485760 )
19
20
private String description ;
20
21
private String company ;
21
22
private String source ;
Original file line number Diff line number Diff line change 1
- spring.datasource.url = jdbc:mysql ://localhost:3306 /jparser
2
- spring.datasource.username = root
1
+ spring.datasource.url = jdbc:postgresql ://localhost:5432 /jparser
2
+ spring.datasource.username = postgres
3
3
spring.datasource.password = root
4
- spring.datasource.testWhileIdle = true
5
- spring.datasource.validationQuery = SELECT 1
6
4
spring.jpa.show-sql = true
7
5
spring.jpa.hibernate.ddl-auto = update
8
- spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
6
+
7
+ # spring.datasource.url = jdbc:postgresql://${RDS_HOSTNAME}:${RDS_PORT}/${RDS_DB_NAME}
8
+ # spring.datasource.username = ${RDS_USERNAME}
9
+ # spring.datasource.password = ${RDS_PASSWORD}
10
+ # spring.thymeleaf.encoding=UTF-8
11
+ # spring.jpa.hibernate.ddl-auto = update
12
+ # spring.resources.chain.strategy.content.enabled=true
13
+ # spring.resources.chain.strategy.content.paths=/**
You can’t perform that action at this time.
0 commit comments