Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
task3.0
Commits
06320eea
Commit
06320eea
authored
Apr 11, 2019
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化配置
parent
d6a5b49e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
0 deletions
+143
-0
.gitignore
.gitignore
+2
-0
pom.xml
pom.xml
+76
-0
mybatis-config.xml
src/main/resources/mybatis-config.xml
+65
-0
No files found.
.gitignore
View file @
06320eea
/.idea/
pom.xml
0 → 100644
View file @
06320eea
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.foc
</groupId>
<artifactId>
stattistic
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<!-- log4j日志文件管理包版本 -->
<slf4j.version>
1.6.6
</slf4j.version>
<log4j.version>
1.2.12
</log4j.version>
</properties>
<dependencies>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.13
</version>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
<version>
3.4.6
</version>
</dependency>
<dependency>
<groupId>
log4j
</groupId>
<artifactId>
log4j
</artifactId>
<version>
${log4j.version}
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
<version>
${slf4j.version}
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
${slf4j.version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- maven-shade-plugin -->
<!-- 打包方式:mvn package -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<version>
2.4.1
</version>
<executions>
<execution>
<phase>
package
</phase>
<goals>
<goal>
shade
</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation=
"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"
>
<mainClass>
com.sms.statistic.StatisticTask
</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
src/main/resources/mybatis-config.xml
0 → 100644
View file @
06320eea
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!-- 全局参数 -->
<settings>
<!-- 使全局的映射器启用或禁用缓存。 -->
<setting
name=
"cacheEnabled"
value=
"true"
/>
<!-- 全局启用或禁用延迟加载。当禁用时,所有关联对象都会即时加载。 -->
<setting
name=
"lazyLoadingEnabled"
value=
"true"
/>
<!-- 当启用时,有延迟加载属性的对象在被调用时将会完全加载任意属性。否则,每种属性将会按需要加载。 -->
<setting
name=
"aggressiveLazyLoading"
value=
"true"
/>
<!-- 是否允许单条sql 返回多个数据集 (取决于驱动的兼容性) default:true -->
<setting
name=
"multipleResultSetsEnabled"
value=
"true"
/>
<!-- 是否可以使用列的别名 (取决于驱动的兼容性) default:true -->
<setting
name=
"useColumnLabel"
value=
"true"
/>
<!-- 允许JDBC 生成主键。需要驱动器支持。如果设为了true,这个设置将强制使用被生成的主键,有一些驱动器不兼容不过仍然可以执行。 default:false -->
<setting
name=
"useGeneratedKeys"
value=
"false"
/>
<!-- 指定 MyBatis 如何自动映射 数据基表的列 NONE:不隐射 PARTIAL:部分 FULL:全部 -->
<setting
name=
"autoMappingBehavior"
value=
"PARTIAL"
/>
<!-- 这是默认的执行类型 (SIMPLE: 简单; REUSE: 执行器可能重复使用prepared statements语句;BATCH: 执行器可以重复执行语句和批量更新) -->
<setting
name=
"defaultExecutorType"
value=
"SIMPLE"
/>
<!-- 使用驼峰命名法转换字段。 -->
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
<!-- 设置本地缓存范围 session:就会有数据的共享 statement:语句范围 (这样就不会有数据的共享 ) defalut:session -->
<setting
name=
"localCacheScope"
value=
"SESSION"
/>
<!-- 设置但JDBC类型为空时,某些驱动程序 要指定值,default:OTHER,插入空值时不需要指定类型 -->
<setting
name=
"jdbcTypeForNull"
value=
"NULL"
/>
<setting
name=
"logImpl"
value=
"STDOUT_LOGGING"
/>
</settings>
<environments
default=
"dev"
>
<environment
id=
"dev"
>
<transactionManager
type=
"JDBC"
/>
<!-- 配置数据库连接信息 -->
<dataSource
type=
"POOLED"
>
<property
name=
"driver"
value=
"com.mysql.jdbc.Driver"
/>
<property
name=
"url"
value=
"jdbc:mysql://106.75.97.50:3306/jd_foc"
/>
<property
name=
"username"
value=
"focuser"
/>
<property
name=
"password"
value=
"1qaz@WSX2019"
/>
</dataSource>
</environment>
</environments>
<mappers>
<!--<mapper resource="mapper/*.xml"/>-->
<mapper
resource=
"mapper/AppMapper.xml"
/>
<mapper
resource=
"mapper/SmsMapper.xml"
/>
<mapper
resource=
"mapper/StatisticMapper.xml"
/>
<!-- Mapper扫描包,必须同目录同名称下-->
<!--<package name="com.sms.statistic.mapper"/>-->
</mappers>
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment