forked from leelance/spring-boot-all
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
spring-boot-samples/src/main/java/com/lance/application/CrawlerCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.lance.application; | ||
|
||
import java.util.concurrent.Callable; | ||
|
||
public class CrawlerCall implements Callable<String>{ | ||
|
||
public String call() throws Exception { | ||
|
||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
spring-boot-samples/src/main/java/com/lance/repository/BlogRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.lance.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.lance.entity.BlogEntity; | ||
|
||
public interface BlogRepository extends JpaRepository<BlogEntity, Long>{ | ||
|
||
} |
25 changes: 8 additions & 17 deletions
25
spring-boot-samples/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
#DB properties: | ||
spring.datasource.url=jdbc:mysql://localhost:3306/test | ||
spring.datasource.username=root | ||
spring.datasource.password=123456 | ||
#Created by JInto - www.guh-software.de | ||
#Wed Jun 18 21:31:46 CST 2014 | ||
server.port=8080 | ||
server.tomcat.access-log-enabled=true | ||
spring.datasource.driverClassName=com.mysql.jdbc.Driver | ||
|
||
#JPA Configuration: | ||
spring.jpa.show-sql=true | ||
#spring.jpa.generate-ddl=true | ||
spring.datasource.password=123456 | ||
spring.datasource.url=jdbc\:mysql\://localhost\:3306/test?useUnicode\=true&characterEncoding\=utf-8 | ||
spring.datasource.username=root | ||
spring.jpa.hibernate.ddl-auto=update | ||
#spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect | ||
#spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy | ||
#spring.jpa.database=org.hibernate.dialect.MySQL5InnoDBDialect | ||
|
||
#view Configuration: | ||
spring.jpa.show-sql=true | ||
spring.view.prefix=/WEB-INF/views/ | ||
spring.view.suffix= | ||
|
||
#Server Configuration: | ||
server.port=8080 | ||
server.tomcat.access-log-enabled=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
#DB properties: | ||
spring.datasource.url=jdbc:mysql://localhost:3306/test | ||
spring.datasource.username=root | ||
spring.datasource.password=123456 | ||
#Created by JInto - www.guh-software.de | ||
#Wed Jun 18 21:31:46 CST 2014 | ||
server.port=8080 | ||
server.tomcat.access-log-enabled=true | ||
spring.datasource.driverClassName=com.mysql.jdbc.Driver | ||
|
||
#JPA Configuration: | ||
spring.jpa.show-sql=true | ||
#spring.jpa.generate-ddl=true | ||
spring.datasource.password=123456 | ||
spring.datasource.url=jdbc\:mysql\://localhost\:3306/test?useUnicode\=true&characterEncoding\=utf-8 | ||
spring.datasource.username=root | ||
spring.jpa.hibernate.ddl-auto=update | ||
#spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect | ||
#spring.jpa.hibernate.naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy | ||
#spring.jpa.database=org.hibernate.dialect.MySQL5InnoDBDialect | ||
|
||
#view Configuration: | ||
spring.jpa.show-sql=true | ||
spring.view.prefix=/WEB-INF/views/ | ||
spring.view.suffix= | ||
|
||
#Server Configuration: | ||
server.port=8080 | ||
server.tomcat.access-log-enabled=true |