提交 5b954b91 authored 作者: hjf's avatar hjf

添加了lib

上级 f2ecf57a
......@@ -16,6 +16,7 @@
<properties>
<java.version>1.8</java.version>
</properties>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -101,6 +102,20 @@
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.programmaticallyspeaking.aptdemo</groupId>
<artifactId>generateAnnotation</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${pom.basedir}/src/main/resources/lib/generateAnnotation-1.0-SNAPSHOT.jar</systemPath>
</dependency>
<!-- 打包lib代码到本地仓库 谁用谁打包-->
<!-- <dependency>-->
<!-- <groupId>com.zjty</groupId>-->
<!-- <artifactId>generateAnnotation</artifactId>-->
<!-- <version>1.0-SNAPSHOT</version>-->
<!-- </dependency>-->
</dependencies>
<build>
......
package com.tykj;
import com.sun.tools.javac.code.Symbol;
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
/**
* @author HASEE
......
......@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
public class ToUpperCase extends PhysicalNamingStrategyStandardImpl {
@Override
public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) {
return Identifier.toIdentifier(name.getText().toUpperCase());
}
......
......@@ -19,7 +19,7 @@ public abstract class BaseEntity {
@Id
// @SequenceGenerator(sequenceName = "SEQUENCE",name = "t1",allocationSize = 1)
@GeneratedValue(strategy = GenerationType.IDENTITY)
// @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty("主键")
protected Integer id;
......
......@@ -23,6 +23,7 @@ import java.util.List;
@Data
@NoArgsConstructor
@Entity
//@Table(name = "column_info")
@Table
@ApiModel("列对象")
public class ColumnInfo extends BaseEntity {
......
......@@ -21,6 +21,7 @@ import javax.persistence.Table;
@AllArgsConstructor
@NoArgsConstructor
@Entity
//@Table(name = "quote")
@Table
@ApiModel("引用对象")
public class Quote extends BaseEntity {
......
......@@ -18,6 +18,7 @@ import javax.persistence.Table;
@NoArgsConstructor
@Data
@Entity
//@Table(name = "rule")
@Table
@ApiModel("规则表")
public class Rule extends BaseEntity {
......
......@@ -22,6 +22,7 @@ import javax.persistence.Table;
*/
@Entity
//@Table(name = "table_info")
@Table
@Data
@AllArgsConstructor
......
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3306/mybatis?useSSL=true&verifyServerCertificate=false&useUnicode=true&autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
read-only: false
connection-timeout: 60000
idle-timeout: 60000
validation-timeout: 3000
max-lifetime: 60000
login-timeout: 5
maximum-pool-size: 60
minimum-idle: 10
jpa:
show-sql: true
hibernate:
naming:
physical-strategy: com.tykj.base.config.ToUpperCase
ddl-auto: update
# database-platform: org.hibernate.dialect.MySQL8Dialect
server:
port: 8088
\ No newline at end of file
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3306/mybatis?useSSL=true&verifyServerCertificate=false&useUnicode=true&autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
read-only: false
connection-timeout: 60000
idle-timeout: 60000
validation-timeout: 3000
max-lifetime: 60000
login-timeout: 5
maximum-pool-size: 60
minimum-idle: 10
jpa:
show-sql: true
hibernate:
naming:
physical-strategy: com.tykj.base.config.ToUpperCase
ddl-auto: update
# database-platform: org.hibernate.dialect.MySQL8Dialect
profiles:
active: dev
server:
port: 8088
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论