Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
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
姚本章
dm_project
Commits
874a6e8d
Commit
874a6e8d
authored
Dec 01, 2020
by
machengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mall 配置
parent
1d6520de
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
Application.java
jz-dm-mall/src/main/java/com/jz/dm/mall/Application.java
+1
-1
DatabaseConfig.java
...l/src/main/java/com/jz/dm/mall/config/DatabaseConfig.java
+1
-1
TestController.java
...java/com/jz/dm/mall/moduls/controller/TestController.java
+2
-2
TestMapper.java
...rc/main/java/com/jz/dm/mall/moduls/mapper/TestMapper.java
+1
-1
TestService.java
.../main/java/com/jz/dm/mall/moduls/service/TestService.java
+1
-1
TestServiceImpl.java
...a/com/jz/dm/mall/moduls/service/impl/TestServiceImpl.java
+3
-3
TesttMapper.xml
jz-dm-mall/src/main/resources/mapperconf/TesttMapper.xml
+1
-1
No files found.
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/Application.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/Application.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
;
package
com
.
jz
.
dm
.
mall
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/config/DatabaseConfig.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/config/DatabaseConfig.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
.
config
;
package
com
.
jz
.
dm
.
mall
.
config
;
import
com.alibaba.druid.pool.DruidDataSource
;
import
com.alibaba.druid.pool.DruidDataSource
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.apache.ibatis.session.SqlSessionFactory
;
...
...
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/moduls/controller/TestController.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/moduls/controller/TestController.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
.
moduls
.
controller
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.jz.dm.
gateway
.moduls.service.TestService
;
import
com.jz.dm.
mall
.moduls.service.TestService
;
@RestController
@RestController
@RequestMapping
(
"/test"
)
@RequestMapping
(
"/test"
)
...
...
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/moduls/mapper/TestMapper.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/moduls/mapper/TestMapper.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
.
moduls
.
mapper
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
mapper
;
import
java.util.Map
;
import
java.util.Map
;
...
...
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/moduls/service/TestService.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/moduls/service/TestService.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
.
moduls
.
service
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
;
public
interface
TestService
{
public
interface
TestService
{
...
...
jz-dm-mall/src/main/java/com/jz/dm/
gateway
/moduls/service/impl/TestServiceImpl.java
→
jz-dm-mall/src/main/java/com/jz/dm/
mall
/moduls/service/impl/TestServiceImpl.java
View file @
874a6e8d
package
com
.
jz
.
dm
.
gateway
.
moduls
.
service
.
impl
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
.
impl
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.jz.dm.
gateway
.moduls.mapper.TestMapper
;
import
com.jz.dm.
mall
.moduls.mapper.TestMapper
;
import
com.jz.dm.
gateway
.moduls.service.TestService
;
import
com.jz.dm.
mall
.moduls.service.TestService
;
@Service
(
"testService"
)
@Service
(
"testService"
)
public
class
TestServiceImpl
implements
TestService
{
public
class
TestServiceImpl
implements
TestService
{
...
...
jz-dm-mall/src/main/resources/mapperconf/TesttMapper.xml
View file @
874a6e8d
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.jz.dm.
gateway
.moduls.mapper.TestMapper"
>
<mapper
namespace=
"com.jz.dm.
mall
.moduls.mapper.TestMapper"
>
<select
id=
"getTest"
resultType=
"map"
>
<select
id=
"getTest"
resultType=
"map"
>
select * from dm_test;
select * from dm_test;
...
...
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