修改初始化代码

master
xiaoCJ 8 months ago
parent 112da9bdbc
commit c6264fa281

@ -12,7 +12,7 @@ spring:
# 文件存储 # 文件存储
file: file:
type: local type: local
path: /usr/local/tianzeProject/financial_bigdata/uploadFile path: /usr/local/tianzeProject/money_management/uploadFile
timer: timer:

@ -79,7 +79,7 @@ spring:
multi-statement-allow: true multi-statement-allow: true
mybatis: mybatis:
type-aliases-package: com.sztzjy.financial_bigdata.entity type-aliases-package: com.sztzjy.money_management.entity
mapper-locations: classpath*:/mapper/*.xml mapper-locations: classpath*:/mapper/*.xml

@ -7,7 +7,7 @@
<!-- <property name="suppressAllComments" value="true"/>--> <!-- <property name="suppressAllComments" value="true"/>-->
<!-- </commentGenerator>--> <!-- </commentGenerator>-->
<!-- type值为自定义的MyCommentGenerator--> <!-- type值为自定义的MyCommentGenerator-->
<commentGenerator type="com.sztzjy.financial_bigdata.util.MyCommentGenerator"> <commentGenerator type="com.sztzjy.money_management.util.MyCommentGenerator">
<!-- 是否去除自动生成的注释 true false:否 --> <!-- 是否去除自动生成的注释 true false:否 -->
<property name="suppressAllComments" value="false"/> <property name="suppressAllComments" value="false"/>
<property name="suppressDate" value="false"/> <property name="suppressDate" value="false"/>
@ -18,14 +18,14 @@
<!-- 配置数据库连接信息 --> <!-- 配置数据库连接信息 -->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" <jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://118.31.7.2:3306/financial_bigdata" userId="root" connectionURL="jdbc:mysql://118.31.7.2:3306/money_management" userId="root"
password="sztzjy2017"> password="sztzjy2017">
<property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 --> <property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 -->
<!--解决mysql驱动升级到8.0后不生成指定数据库代码的问题--> <!--解决mysql驱动升级到8.0后不生成指定数据库代码的问题-->
<property name="nullCatalogMeansCurrent" value="true" /> <property name="nullCatalogMeansCurrent" value="true"/>
</jdbcConnection> </jdbcConnection>
<!-- 配置实体类的位置 --> <!-- 配置实体类的位置 -->
<javaModelGenerator targetPackage="com.sztzjy.financial_bigdata.entity" targetProject="src/main/java"> <javaModelGenerator targetPackage="com.sztzjy.money_management.entity" targetProject="src/main/java">
<!-- 生成的Java模型是否支持序列化 --> <!-- 生成的Java模型是否支持序列化 -->
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/> <property name="trimStrings" value="true"/>
@ -37,29 +37,12 @@
</sqlMapGenerator> </sqlMapGenerator>
<!-- 配置Mapper接口的位置 --> <!-- 配置Mapper接口的位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.financial_bigdata.mapper" <javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.money_management.mapper"
targetProject="src/main/java"> targetProject="src/main/java">
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true"/>
</javaClientGenerator> </javaClientGenerator>
<!-- 需要生成的表 --> <!-- 需要生成的表 -->
<!-- <table tableName="stu_class" domainObjectName="StuClass" />--> <table tableName="sys_case_question" domainObjectName="SysCaseQuestion"/>
<!-- <table tableName="stu_error" domainObjectName="StuError" />-->
<!-- <table tableName="stu_exam_case" domainObjectName="StuExamCase" />-->
<!-- <table tableName="stu_student_exam" domainObjectName="StuStudentExam" />-->
<!-- <table tableName="stu_theory_exam" domainObjectName="StuTheoryExam" />-->
<!-- <table tableName="stu_theory_record" domainObjectName="StuTheoryRecord" />-->
<!-- <table tableName="stu_training" domainObjectName="StuTraining" />-->
<!-- <table tableName="stu_userinfo" domainObjectName="StuUser" />-->
<!-- <table tableName="sys_case_question_bank" domainObjectName="SysCaseQuestionBank" />-->
<!-- <table tableName="sys_course" domainObjectName="SysCourse" />-->
<!-- <table tableName="sys_course_chapter" domainObjectName="SysCourseChapter" />-->
<!-- <table tableName="sys_log" domainObjectName="SysLog" />-->
<!-- <table tableName="sys_objective_question" domainObjectName="SysObjectiveQuestion" />-->
<!-- <table tableName="tea_exam_manage" domainObjectName="TeaExamManage" />-->
<!-- <table tableName="tea_learning_statistics" domainObjectName="TeaLearningStatistics" />-->
<!-- <table tableName="tea_resource_center" domainObjectName="TeaResourceCenter" />-->
<!-- <table tableName="training_report" domainObjectName="TrainingReport" />-->
<table tableName="sys_case_question" domainObjectName="SysCaseQuestion" />
</context> </context>

Loading…
Cancel
Save