Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
32b6bf37
Commit
32b6bf37
authored
Jun 25, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
7af70f4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
6 deletions
+54
-6
jdbc-gic-store-service.xml
...ore-service/src/main/resources/jdbc-gic-store-service.xml
+8
-6
log4j2.xml
gic-store-service/src/main/resources/log4j2.xml
+27
-0
TestController.java
...ain/java/com/gic/store/web/controller/TestController.java
+19
-0
No files found.
gic-store-service/src/main/resources/jdbc-gic-store-service.xml
View file @
32b6bf37
...
...
@@ -15,13 +15,15 @@
<context:annotation-config/>
<
apollo:config
namespaces=
"COMMON.sharding,COMMON.4.0-jdbc"
/
>
<
!--<apollo:config namespaces="COMMON.sharding,COMMON.4.0-jdbc"/>--
>
<bean
id=
"dataSource"
class=
"com.gic.sharding.sdk.ShardingDatasource"
init-method=
"init"
>
<property
name=
"shardingId"
value=
"${sharding.shardingId}"
/>
<property
name=
"maxSize"
value=
"${jdbc.maxsize}"
/>
<property
name=
"urlType"
value=
"${sharding.urlType:inner}"
/>
</bean>
<!--<bean id="dataSource" class="com.gic.sharding.sdk.ShardingDatasource" init-method="init">-->
<!--<property name="shardingId" value="${sharding.shardingId}"/>-->
<!--<property name="maxSize" value="${jdbc.maxsize}"/>-->
<!--<property name="urlType" value="${sharding.urlType:inner}"/>-->
<!--</bean>-->
<import
resource=
"classpath:applicationContext-db-only.xml"
/>
<bean
class=
"org.mybatis.spring.SqlSessionFactoryBean"
id=
"sqlSessionFactory"
>
<property
name=
"dataSource"
ref=
"dataSource"
/>
...
...
gic-store-service/src/main/resources/log4j2.xml
0 → 100644
View file @
32b6bf37
<?xml version="1.0" encoding="UTF-8"?>
<configuration
status=
"error"
packages=
"com.gic.commons.log"
>
<appenders>
<!--这个输出控制台的配置-->
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
<ThresholdFilter
level=
"trace"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<!--这个都知道是输出日志的格式-->
<PatternLayout
pattern=
"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c:%L] [%traceId] %m%n"
/>
</Console>
</appenders>
<loggers>
<!--建立一个默认的root的logger-->
<Logger
name=
"com.gic"
level=
"DEBUG"
/>
<Logger
name=
"org.springframework"
level=
"INFO"
/>
<logger
name=
"Sharding-JDBC-SQL"
level=
"INFO"
/>
<logger
name=
"org.hibernate.SQL"
level=
"DEBUG"
/>
<logger
name=
"org.hibernate.type.descriptor.sql.BasicBinder"
level=
"DEBUG"
/>
<Root
level=
"WARN"
>
<!--<Root level="DEBUG">-->
<AppenderRef
ref=
"Console"
/>
</Root>
</loggers>
</configuration>
gic-store-web/src/main/java/com/gic/store/web/controller/TestController.java
0 → 100644
View file @
32b6bf37
package
com
.
gic
.
store
.
web
.
controller
;
import
com.gic.store.service.StoreRegionApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
@Controller
public
class
TestController
{
@Autowired
private
StoreRegionApiService
storeRegionApiService
;
@RequestMapping
(
"test"
)
@ResponseBody
public
Object
test
(){
return
this
.
storeRegionApiService
.
listStoreRegion
(
1
,
""
,
1
,
1
);
}
}
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