Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs-core/src/main/resources/db/update/dbupdate-010-0.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
insert into T_CONFIG(CFG_ID_C, CFG_VALUE_C) values('GUEST_LOGIN', 'false');
insert into T_CONFIG(CFG_ID_C, CFG_VALUE_C) values('GUEST_LOGIN', 'true');
insert into T_USER(USE_ID_C, USE_IDROLE_C, USE_USERNAME_C, USE_PASSWORD_C, USE_EMAIL_C, USE_CREATEDATE_D, USE_PRIVATEKEY_C) values('guest', 'user', 'guest', '', 'guest@localhost', NOW(), 'GuestPk');
update T_CONFIG set CFG_VALUE_C = '10' where CFG_ID_C = 'DB_VERSION';
Binary file added docs-web/data/teedy.mv.db
Binary file not shown.
898 changes: 898 additions & 0 deletions docs-web/data/teedy.trace.db

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion docs-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,20 @@
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
<systemProperties>
<systemProperty>
<name>application.mode</name>
<value>dev</value>
</systemProperty>
</systemProperties>
<webApp>
<contextPath>/docs-web</contextPath>
<contextPath>/</contextPath>
<overrideDescriptor>${project.basedir}/src/dev/main/webapp/web-override.xml</overrideDescriptor>
<resourceBases>
<resourceBase>${project.basedir}/src/main/webapp</resourceBase>
<resourceBase>${project.basedir}/src/main/webapp/dist</resourceBase>
</resourceBases>
</webApp>
</configuration>
</plugin>
Expand Down
6 changes: 6 additions & 0 deletions docs-web/src/dev/resources/config.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
api.current_version=${project.version}
api.min_version=1.0
db.version=31

# --- 以下是你新增的内容 ---
storage.path=/var/docs
db.url=jdbc:h2:file:/var/docs/teedy;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false
db.user=sa
db.password=
6 changes: 3 additions & 3 deletions docs-web/src/dev/resources/hibernate.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.url=jdbc:h2:mem:docs
hibernate.connection.url=jdbc:h2:file:./data/teedy;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false
hibernate.connection.username=sa
hibernate.connection.password=
hibernate.hbm2ddl.auto=
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl.auto=update
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.show_sql=false
hibernate.format_sql=false
hibernate.max_fetch_depth=5
Expand Down
Loading