Skip to content

Commit b6c4bdb

Browse files
committed
2025.03.18 | 优化local版本静态库,新增json.cn配置文件
1 parent d3bfb0c commit b6c4bdb

File tree

6 files changed

+76
-9
lines changed

6 files changed

+76
-9
lines changed

generator-web/src/main/resources/application-bejson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ OEM:
5757
description: <p>SpringBootCodeGenerator,又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。</p><p>——从繁琐重复的`CRUD工作`中释放你的双手,可通过DDL SQL语句或Select SQL语句或简单Json -> 生成JPA/JdbcTemplate/Mybatis/MybatisPlus/BeetlSQL/CommonMapper等相关模板代码。</p>
5858
author: BEJSON.com
5959
packageName: www.bejson.com
60-
copyright: Powered by <a href="https://zhengkai.blog.csdn.net" target="_blank">Moshow郑锴</a> , Might the holy light be with you !
60+
copyright: Powered by <a href="https://zhengkai.blog.csdn.net" target="_blank">Moshow</a> + <a href="https://www.bejson.com/">BeJSON</a> , Might the holy light be with you !
6161
returnUtilSuccess: ResponseUtil.success
6262
returnUtilFailure: ResponseUtil.error
6363
outputStr: www.bejson.com
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
server:
2+
port: 1235
3+
http2:
4+
enabled: true
5+
servlet:
6+
context-path: /generator
7+
#tomcat:
8+
# remote-ip-header: x-forward-for
9+
# uri-encoding: UTF-8
10+
# max-threads: 10
11+
# background-processor-delay: 30
12+
# basedir: ${user.home}/tomcat/
13+
undertow:
14+
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
15+
# 不要设置过大,如果过大,启动项目会报错:打开文件数过多
16+
io-threads: 4
17+
# 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程
18+
# 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8
19+
worker-threads: 64
20+
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
21+
# 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可
22+
buffer-size: 1024
23+
# 是否分配的直接内存(NIO直接分配的堆外内存)
24+
direct-buffers: true
25+
spring:
26+
banner:
27+
charset: UTF-8
28+
web:
29+
encoding:
30+
force: true
31+
charset: UTF-8
32+
application:
33+
name: spring-boot-code-generator
34+
freemarker:
35+
request-context-attribute: request
36+
suffix: .html
37+
content-type: text/html
38+
enabled: true
39+
cache: false
40+
charset: UTF-8
41+
allow-request-override: false
42+
expose-request-attributes: true
43+
expose-session-attributes: true
44+
expose-spring-macro-helpers: true
45+
settings:
46+
number_format: 0.##
47+
default_encoding: UTF-8
48+
#template_loader: /templates/
49+
#mvc:
50+
# static-path-pattern: /statics/**
51+
OEM:
52+
version: 2025 March
53+
header: SQL转Java JPA、MYBATIS实现类代码生成平台
54+
keywords: sql转实体类,sql转DAO,SQL转service,SQL转JPA实现,SQL转MYBATIS实现
55+
title: JAVA在线代码生成
56+
slogan: Release your hands from tedious and repetitive CRUD tasks.
57+
description: <p>SpringBootCodeGenerator,又名`大狼狗代码生成器`、`SQL转JAVA`、`SQL转JPA`、`SQL转Mybatis`、`Mybatis在线生成器`、`SQL转Java JPA、MYBATIS实现类代码生成平台`。</p><p>——从繁琐重复的`CRUD工作`中释放你的双手,可通过DDL SQL语句或Select SQL语句或简单Json -> 生成JPA/JdbcTemplate/Mybatis/MybatisPlus/BeetlSQL/CommonMapper等相关模板代码。</p>
58+
author: https://www.json.cn/
59+
packageName: www.json.cn
60+
copyright: Powered by <a href="https://zhengkai.blog.csdn.net" target="_blank">Moshow</a> + <a href="https://www.json.cn/">JSON</a> , Might the holy light be with you !
61+
returnUtilSuccess: ResponseUtil.success
62+
returnUtilFailure: ResponseUtil.error
63+
outputStr: www.json.cn
64+
mode: local

generator-web/src/main/resources/statics/libs/bootstrap/bootstrap.min.css.map

Whitespace-only changes.

generator-web/src/main/resources/templates/newui-import-local.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<!-- import codemirror -->
2727
<script src="${request.contextPath}/statics/libs/codemirror/codemirror.min.js"></script>
28-
<link href="${request.contextPath}/statics/libs/codemirror/codemirror.min.css" type="text/css" rel="stylesheet" >
2928
<script src="${request.contextPath}/statics/libs/codemirror/mode/sql/sql.min.js"></script>
29+
<script src="${request.contextPath}/statics/libs/codemirror/mode/clike/clike.min.js"></script>
30+
<link href="${request.contextPath}/statics/libs/codemirror/codemirror.min.css" type="text/css" rel="stylesheet" >
3031
<link href="${request.contextPath}/statics/libs/codemirror/theme/idea.min.css" type="text/css" rel="stylesheet" >

pom.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
<module>generator-web</module>
1919
</modules>
2020

21+
<repositories>
22+
<repository>
23+
<id>alimaven</id>
24+
<name>aliyun maven</name>
25+
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
26+
</repository>
27+
</repositories>
2128

2229
<properties>
2330
<!-- 指定编码 -->
@@ -159,12 +166,7 @@
159166
</plugins>
160167
</build>
161168

162-
<repositories>
163-
<repository>
164-
<id>alimaven</id>
165-
<name>aliyun maven</name>
166-
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
167-
</repository>
168-
</repositories>
169+
170+
169171

170172
</project>

0 commit comments

Comments
 (0)