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

添加了lib

上级 f2ecf57a
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
</properties> </properties>
<packaging>jar</packaging>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
...@@ -101,6 +102,20 @@ ...@@ -101,6 +102,20 @@
<scope>system</scope> <scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath> <systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency> </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> </dependencies>
<build> <build>
......
package com.tykj; 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.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
/** /**
* @author HASEE * @author HASEE
......
...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component; ...@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
public class ToUpperCase extends PhysicalNamingStrategyStandardImpl { public class ToUpperCase extends PhysicalNamingStrategyStandardImpl {
@Override @Override
public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) { public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) {
return Identifier.toIdentifier(name.getText().toUpperCase()); return Identifier.toIdentifier(name.getText().toUpperCase());
} }
......
...@@ -19,7 +19,7 @@ public abstract class BaseEntity { ...@@ -19,7 +19,7 @@ public abstract class BaseEntity {
@Id @Id
// @SequenceGenerator(sequenceName = "SEQUENCE",name = "t1",allocationSize = 1) // @SequenceGenerator(sequenceName = "SEQUENCE",name = "t1",allocationSize = 1)
@GeneratedValue(strategy = GenerationType.IDENTITY) // @GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty("主键") @ApiModelProperty("主键")
protected Integer id; protected Integer id;
......
...@@ -23,6 +23,7 @@ import java.util.List; ...@@ -23,6 +23,7 @@ import java.util.List;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@Entity @Entity
//@Table(name = "column_info")
@Table @Table
@ApiModel("列对象") @ApiModel("列对象")
public class ColumnInfo extends BaseEntity { public class ColumnInfo extends BaseEntity {
......
...@@ -21,6 +21,7 @@ import javax.persistence.Table; ...@@ -21,6 +21,7 @@ import javax.persistence.Table;
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
@Entity @Entity
//@Table(name = "quote")
@Table @Table
@ApiModel("引用对象") @ApiModel("引用对象")
public class Quote extends BaseEntity { public class Quote extends BaseEntity {
......
...@@ -18,6 +18,7 @@ import javax.persistence.Table; ...@@ -18,6 +18,7 @@ import javax.persistence.Table;
@NoArgsConstructor @NoArgsConstructor
@Data @Data
@Entity @Entity
//@Table(name = "rule")
@Table @Table
@ApiModel("规则表") @ApiModel("规则表")
public class Rule extends BaseEntity { public class Rule extends BaseEntity {
......
...@@ -22,6 +22,7 @@ import javax.persistence.Table; ...@@ -22,6 +22,7 @@ import javax.persistence.Table;
*/ */
@Entity @Entity
//@Table(name = "table_info")
@Table @Table
@Data @Data
@AllArgsConstructor @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: spring:
jackson: profiles:
date-format: yyyy-MM-dd HH:mm:ss active: dev
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
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论