-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from moshowgame/3.1
3.1 OEM优化
- Loading branch information
Showing
15 changed files
with
294 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
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
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
53 changes: 53 additions & 0 deletions
53
generator-web/src/main/java/com/softdev/system/generator/util/ValueUtil.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,53 @@ | ||
package com.softdev.system.generator.util; | ||
|
||
import lombok.Data; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* Get Value From Application.yml | ||
* @author zhengkai.blog.csdn.net | ||
*/ | ||
@Data | ||
@Component | ||
public class ValueUtil { | ||
@Value("${OEM.title}") | ||
public String title; | ||
|
||
@Value("${OEM.header}") | ||
public String header; | ||
|
||
@Value("${OEM.version}") | ||
public String version; | ||
|
||
@Value("${OEM.author}") | ||
public String author; | ||
|
||
@Value("${OEM.keywords}") | ||
public String keywords; | ||
|
||
@Value("${OEM.slogan}") | ||
public String slogan; | ||
|
||
@Value("${OEM.copyright}") | ||
public String copyright; | ||
|
||
@Value("${OEM.description}") | ||
public String description; | ||
|
||
@Value("${OEM.packageName}") | ||
public String packageName; | ||
|
||
@Value("${OEM.returnUtilSuccess}") | ||
public String returnUtilSuccess; | ||
|
||
@Value("${OEM.returnUtilFailure}") | ||
public String returnUtilFailure; | ||
|
||
@Value("${OEM.outputStr}") | ||
public String outputStr; | ||
|
||
@Value("${OEM.mode}") | ||
public String mode; | ||
} | ||
|
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,62 @@ | ||
server: | ||
port: 1234 | ||
servlet: | ||
context-path: /generator | ||
#tomcat: | ||
# remote-ip-header: x-forward-for | ||
# uri-encoding: UTF-8 | ||
# max-threads: 10 | ||
# background-processor-delay: 30 | ||
# basedir: ${user.home}/tomcat/ | ||
undertow: | ||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 | ||
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多 | ||
io-threads: 4 | ||
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程 | ||
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8 | ||
worker-threads: 64 | ||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 | ||
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可 | ||
buffer-size: 1024 | ||
# 是否分配的直接内存(NIO直接分配的堆外内存) | ||
direct-buffers: true | ||
spring: | ||
banner: | ||
charset: UTF-8 | ||
http: | ||
encoding: | ||
force: true | ||
charset: UTF-8 | ||
application: | ||
name: spring-boot-code-generator | ||
freemarker: | ||
request-context-attribute: request | ||
suffix: .html | ||
content-type: text/html | ||
enabled: true | ||
cache: false | ||
charset: UTF-8 | ||
allow-request-override: false | ||
expose-request-attributes: true | ||
expose-session-attributes: true | ||
expose-spring-macro-helpers: true | ||
settings: | ||
number_format: 0.## | ||
default_encoding: UTF-8 | ||
#template_loader: /templates/ | ||
#mvc: | ||
# static-path-pattern: /statics/** | ||
OEM: | ||
version: 3.1 | ||
header: SQL转Java JPA、MYBATIS实现类代码生成平台 | ||
keywords: sql转实体类,sql转DAO,SQL转service,SQL转JPA实现,SQL转MYBATIS实现 | ||
title: JAVA在线代码生成 | ||
slogan: For reducing the repetitive CRUD work | ||
description: SpringBootCodeGenerator(JAVA代码生成平台),又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。 | ||
author: BEJSON | ||
packageName: www.bejson.com | ||
copyright: powered by Moshow郑锴(大狼狗) | ||
returnUtilSuccess: ReturnT.success | ||
returnUtilFailure: ReturnT.error | ||
outputStr: www.bejson.com | ||
mode: CDN |
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,62 @@ | ||
server: | ||
port: 1234 | ||
servlet: | ||
context-path: /generator | ||
#tomcat: | ||
# remote-ip-header: x-forward-for | ||
# uri-encoding: UTF-8 | ||
# max-threads: 10 | ||
# background-processor-delay: 30 | ||
# basedir: ${user.home}/tomcat/ | ||
undertow: | ||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 | ||
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多 | ||
io-threads: 4 | ||
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程 | ||
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8 | ||
worker-threads: 64 | ||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 | ||
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可 | ||
buffer-size: 1024 | ||
# 是否分配的直接内存(NIO直接分配的堆外内存) | ||
direct-buffers: true | ||
spring: | ||
banner: | ||
charset: UTF-8 | ||
http: | ||
encoding: | ||
force: true | ||
charset: UTF-8 | ||
application: | ||
name: spring-boot-code-generator | ||
freemarker: | ||
request-context-attribute: request | ||
suffix: .html | ||
content-type: text/html | ||
enabled: true | ||
cache: false | ||
charset: UTF-8 | ||
allow-request-override: false | ||
expose-request-attributes: true | ||
expose-session-attributes: true | ||
expose-spring-macro-helpers: true | ||
settings: | ||
number_format: 0.## | ||
default_encoding: UTF-8 | ||
#template_loader: /templates/ | ||
#mvc: | ||
# static-path-pattern: /statics/** | ||
OEM: | ||
version: 3.1 | ||
header: SQL转Java JPA、MYBATIS实现类代码生成平台 | ||
keywords: sql转实体类,sql转DAO,SQL转service,SQL转JPA实现,SQL转MYBATIS实现 | ||
title: JAVA代码生成平台 | ||
slogan: For reducing the repetitive CRUD work | ||
description: SpringBootCodeGenerator(JAVA代码生成平台),又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。 | ||
author: zhengkai.blog.csdn.net | ||
packageName: com.software.system | ||
copyright: powered by Moshow郑锴(大狼狗) | ||
returnUtilSuccess: ReturnT.success | ||
returnUtilFailure: ReturnT.error | ||
outputStr: zhengkai.blog.csdn.net | ||
mode: local |
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,62 @@ | ||
server: | ||
port: 1234 | ||
servlet: | ||
context-path: /generator | ||
#tomcat: | ||
# remote-ip-header: x-forward-for | ||
# uri-encoding: UTF-8 | ||
# max-threads: 10 | ||
# background-processor-delay: 30 | ||
# basedir: ${user.home}/tomcat/ | ||
undertow: | ||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 | ||
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多 | ||
io-threads: 4 | ||
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程 | ||
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8 | ||
worker-threads: 64 | ||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 | ||
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可 | ||
buffer-size: 1024 | ||
# 是否分配的直接内存(NIO直接分配的堆外内存) | ||
direct-buffers: true | ||
spring: | ||
banner: | ||
charset: UTF-8 | ||
http: | ||
encoding: | ||
force: true | ||
charset: UTF-8 | ||
application: | ||
name: spring-boot-code-generator | ||
freemarker: | ||
request-context-attribute: request | ||
suffix: .html | ||
content-type: text/html | ||
enabled: true | ||
cache: false | ||
charset: UTF-8 | ||
allow-request-override: false | ||
expose-request-attributes: true | ||
expose-session-attributes: true | ||
expose-spring-macro-helpers: true | ||
settings: | ||
number_format: 0.## | ||
default_encoding: UTF-8 | ||
#template_loader: /templates/ | ||
#mvc: | ||
# static-path-pattern: /statics/** | ||
OEM: | ||
version: 3.1 | ||
header: SQL转Java JPA、MYBATIS实现类代码生成平台 | ||
keywords: sql转实体类,sql转DAO,SQL转service,SQL转JPA实现,SQL转MYBATIS实现 | ||
title: JAVA在线代码生成 | ||
slogan: For reducing the repetitive CRUD work | ||
description: SpringBootCodeGenerator(JAVA代码生成平台),又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。 | ||
author: devtools.cn | ||
packageName: www.devtools.cn | ||
copyright: powered by Moshow郑锴(大狼狗) | ||
returnUtilSuccess: ReturnT.success | ||
returnUtilFailure: ReturnT.error | ||
outputStr: devtools.cn | ||
mode: CDN |
Oops, something went wrong.