An open API service indexing awesome lists of open source software.

https://github.com/openingo/opplates

openingo templates
https://github.com/openingo/opplates

Last synced: 4 months ago
JSON representation

openingo templates

Awesome Lists containing this project

README

        

### Opplates

> OpeningO templates

##### SpringBoot

> SpringBoot多种环境下的配置

- 多数据库
- 多MySQL

- logback

##### MyBatisPlusGenerator依赖

> 建议在test中生成即可。

- properties

```xml

1.8
UTF-8
UTF-8
${java.version}
${java.version}
1.18.8
2.1.8.RELEASE
1.1.21
11.2.0.4.0-atlassian-hosted
8.0.17
2.1.0
3.3.2
1.0
1.0.1
42.2.14
2.2

```

- 必须依赖

```xml


org.projectlombok
lombok
${lombok.version}



org.mybatis.spring.boot
mybatis-spring-boot-starter
${springboot.mybatis.version}




com.baomidou
mybatis-plus-boot-starter
${mybatis-plus.version}




com.baomidou
mybatis-plus-generator
${mybatis-plus.version}
test


org.apache.velocity
velocity-engine-core
${velocity.version}
test




org.springframework.boot
spring-boot-starter-test
test

```

- MySQL

```xml

mysql
mysql-connector-java
${mysql.sersion}


org.openingo.kits
mybatis-x
${mybatis-x.version}

```

- Oracle

```xml

com.oracle
ojdbc6
${ojdbc.version}

```

- PostgreSQL

```xml

org.postgresql
postgresql
${postgresql.version}

```

> 问题:

- Oracle

> 表名及字段都需要用大写,mp gererator出来的 date字段为LocalDateTime,但按照此类型写入数据时,类型错误,需要调整为java.util.Date,调整`com.baomidou.mybatisplus.generator.config.GlobalConfig#dateType`进行配置。

- PostgreSQL

> 表名及字段必须用小写,不然会出现字段找不到的情况。
>
> 在生成的entity中没有@TableField注解

##### Copyright

> 拷贝对应的文件到 `.idea/copyright/`下即可。