| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ | |||
| 6 | 6 | import org.springframework.boot.autoconfigure.domain.EntityScan; | |
| 7 | 7 | import org.springframework.context.annotation.ComponentScan; | |
| 8 | 8 | import org.springframework.context.annotation.Configuration; | |
| 9 | - import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | ||
| 10 | 9 | ||
| 11 | 10 | /** | |
| 12 | 11 | * 把今天最好的表现当作明天最新的起点..~ | |
@@ -26,7 +25,6 @@ | |||
| 26 | 25 | @EnableAutoConfiguration | |
| 27 | 26 | @ComponentScan("info.xiaomo") | |
| 28 | 27 | @EntityScan("info.xiaomo.*.model") | |
| 29 | - @EnableJpaRepositories("info.xiaomo.*.dao") | ||
| 30 | 28 | public class AsyncMain { | |
| 31 | 29 | public static void main(String[] args) throws Exception { | |
| 32 | 30 | SpringApplication.run(AsyncMain.class, args); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,13 +3,6 @@ server.port=8080 | |||
| 3 | 3 | server.session.timeout=1800 | |
| 4 | 4 | server.max-http-header-size=20971520 | |
| 5 | 5 | ||
| 6 | - #datasource | ||
| 7 | - spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo | ||
| 8 | - # ?useUnicode=true&characterEncoding=UTF-8 | ||
| 9 | - spring.datasource.username=xiaomo | ||
| 10 | - spring.datasource.password=123456 | ||
| 11 | - spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
| 12 | - | ||
| 13 | 6 | # \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4 | |
| 14 | 7 | spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | |
| 15 | 8 | spring.jackson.time-zone=GMT+8 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,10 +15,6 @@ | |||
| 15 | 15 | ||
| 16 | 16 | <artifactId>core</artifactId> | |
| 17 | 17 | <dependencies> | |
| 18 | - <dependency> | ||
| 19 | - <groupId>org.springframework.boot</groupId> | ||
| 20 | - <artifactId>spring-boot-starter-data-jpa</artifactId> | ||
| 21 | - </dependency> | ||
| 22 | 18 | <dependency> | |
| 23 | 19 | <groupId>org.springframework.boot</groupId> | |
| 24 | 20 | <artifactId>spring-boot-starter</artifactId> | |
@@ -75,5 +71,9 @@ | |||
| 75 | 71 | <groupId>io.springfox</groupId> | |
| 76 | 72 | <artifactId>springfox-swagger2</artifactId> | |
| 77 | 73 | </dependency> | |
| 74 | + <dependency> | ||
| 75 | + <groupId>dom4j</groupId> | ||
| 76 | + <artifactId>dom4j</artifactId> | ||
| 77 | + </dependency> | ||
| 78 | 78 | </dependencies> | |
| 79 | 79 | </project> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,6 @@ | |||
| 8 | 8 | import org.springframework.context.annotation.Bean; | |
| 9 | 9 | import org.springframework.context.annotation.ComponentScan; | |
| 10 | 10 | import org.springframework.context.annotation.Configuration; | |
| 11 | - import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | ||
| 12 | 11 | import org.springframework.web.bind.annotation.RequestMapping; | |
| 13 | 12 | import org.springframework.web.bind.annotation.RequestMethod; | |
| 14 | 13 | import org.springframework.web.bind.annotation.RestController; | |
@@ -40,7 +39,6 @@ | |||
| 40 | 39 | @EnableAutoConfiguration | |
| 41 | 40 | @ComponentScan("info.xiaomo") | |
| 42 | 41 | @EntityScan("info.xiaomo.*.model") | |
| 43 | - @EnableJpaRepositories("info.xiaomo.*.dao") | ||
| 44 | 42 | @RestController | |
| 45 | 43 | @EnableSwagger2 | |
| 46 | 44 | public class MongodbMain { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,6 @@ | |||
| 7 | 7 | import lombok.ToString; | |
| 8 | 8 | import org.springframework.data.annotation.Id; | |
| 9 | 9 | ||
| 10 | - import javax.persistence.Column; | ||
| 11 | 10 | ||
| 12 | 11 | /** | |
| 13 | 12 | * 把今天最好的表现当作明天最新的起点..~ | |
@@ -46,7 +45,6 @@ public class MongoUser { | |||
| 46 | 45 | private String salt; | |
| 47 | 46 | ||
| 48 | 47 | @ApiModelProperty(value = "激活码") | |
| 49 | - @Column(name = "ValidateCode") | ||
| 50 | 48 | private String validateCode; | |
| 51 | 49 | ||
| 52 | 50 | @ApiModelProperty(value = "性别:1男2女0保密") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,6 @@ server.port=8080 | |||
| 3 | 3 | server.session.timeout=1800 | |
| 4 | 4 | server.max-http-header-size=20971520 | |
| 5 | 5 | ||
| 6 | - #datasource | ||
| 7 | - #datasource | ||
| 8 | - spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo | ||
| 9 | - # ?useUnicode=true&characterEncoding=UTF-8 | ||
| 10 | - spring.datasource.username=xiaomo | ||
| 11 | - spring.datasource.password=123456 | ||
| 12 | - spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
| 13 | - | ||
| 14 | 6 | #mongodb | |
| 15 | 7 | spring.data.mongodb.uri=mongodb://xiaomo:xiaomo@115.29.137.34:27017/admin | |
| 16 | 8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,9 @@ | |||
| 26 | 26 | <module>mongodb</module> | |
| 27 | 27 | <!-- spring安全设置 --> | |
| 28 | 28 | <module>security</module> | |
| 29 | + <!-- mybatis --> | ||
| 29 | 30 | <module>mybatis</module> | |
| 31 | + <!-- jsp --> | ||
| 30 | 32 | <module>jsp</module> | |
| 31 | 33 | </modules> | |
| 32 | 34 | <packaging>pom</packaging> | |
@@ -77,8 +79,11 @@ | |||
| 77 | 79 | <surefire-plugin.version>2.19.1</surefire-plugin.version> | |
| 78 | 80 | <!-- mail --> | |
| 79 | 81 | <javax-mail.version>1.4.7</javax-mail.version> | |
| 82 | + <!-- lomlok --> | ||
| 80 | 83 | <lombak.version>1.16.10</lombak.version> | |
| 84 | + <!-- api文档 --> | ||
| 81 | 85 | <springfox-swagger-ui.version>2.2.2</springfox-swagger-ui.version> | |
| 86 | + <!-- jsp --> | ||
| 82 | 87 | <jsper.version>8.0.9.M3</jsper.version> | |
| 83 | 88 | </properties> | |
| 84 | 89 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,13 +3,6 @@ server.port=8080 | |||
| 3 | 3 | server.session.timeout=1800 | |
| 4 | 4 | server.max-http-header-size=20971520 | |
| 5 | 5 | ||
| 6 | - #datasource | ||
| 7 | - spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo | ||
| 8 | - # ?useUnicode=true&characterEncoding=UTF-8 | ||
| 9 | - spring.datasource.username=xiaomo | ||
| 10 | - spring.datasource.password=123456 | ||
| 11 | - spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
| 12 | - | ||
| 13 | 6 | # \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4 | |
| 14 | 7 | spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | |
| 15 | 8 | spring.jackson.time-zone=GMT+8 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,21 +3,6 @@ server.port=8080 | |||
| 3 | 3 | server.session.timeout=1800 | |
| 4 | 4 | server.max-http-header-size=20971520 | |
| 5 | 5 | ||
| 6 | - #datasource | ||
| 7 | - spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo | ||
| 8 | - # ?useUnicode=true&characterEncoding=UTF-8 | ||
| 9 | - spring.datasource.username=xiaomo | ||
| 10 | - spring.datasource.password=123456 | ||
| 11 | - spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
| 12 | - # \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4 | ||
| 13 | - spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | ||
| 14 | - spring.jackson.time-zone=GMT+8 | ||
| 15 | - | ||
| 16 | - #jpa | ||
| 17 | - spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect | ||
| 18 | - spring.jpa.hibernate.ddl-auto=update | ||
| 19 | - spring.jpa.show-sql=true | ||
| 20 | - | ||
| 21 | 6 | # redis | |
| 22 | 7 | # Redis\u6570\u636E\u5E93\u7D22\u5F15\uFF08\u9ED8\u8BA4\u4E3A0\uFF09 | |
| 23 | 8 | spring.redis.database=0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,17 +3,6 @@ server.port=8080 | |||
| 3 | 3 | server.session.timeout=1800 | |
| 4 | 4 | server.max-http-header-size=20971520 | |
| 5 | 5 | ||
| 6 | - #datasource | ||
| 7 | - spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo | ||
| 8 | - # ?useUnicode=true&characterEncoding=UTF-8 | ||
| 9 | - spring.datasource.username=xiaomo | ||
| 10 | - spring.datasource.password=123456 | ||
| 11 | - spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
| 12 | 6 | # \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4 | |
| 13 | 7 | spring.jackson.date-format=yyyy-MM-dd HH:mm:ss | |
| 14 | 8 | spring.jackson.time-zone=GMT+8 | |
| 15 | - | ||
| 16 | - #jpa | ||
| 17 | - spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect | ||
| 18 | - spring.jpa.hibernate.ddl-auto=update | ||
| 19 | - spring.jpa.show-sql=true | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments