Commit 874a6e8d authored by machengbo's avatar machengbo

mall 配置

parent 1d6520de
package com.jz.dm.gateway;
package com.jz.dm.mall;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package com.jz.dm.gateway.config;
package com.jz.dm.mall.config;
import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.session.SqlSessionFactory;
......
package com.jz.dm.gateway.moduls.controller;
package com.jz.dm.mall.moduls.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jz.dm.gateway.moduls.service.TestService;
import com.jz.dm.mall.moduls.service.TestService;
@RestController
@RequestMapping("/test")
......
package com.jz.dm.gateway.moduls.service;
package com.jz.dm.mall.moduls.service;
public interface TestService {
......
package com.jz.dm.gateway.moduls.service.impl;
package com.jz.dm.mall.moduls.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jz.dm.gateway.moduls.mapper.TestMapper;
import com.jz.dm.gateway.moduls.service.TestService;
import com.jz.dm.mall.moduls.mapper.TestMapper;
import com.jz.dm.mall.moduls.service.TestService;
@Service("testService")
public class TestServiceImpl implements TestService {
......
<?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" >
<mapper namespace="com.jz.dm.gateway.moduls.mapper.TestMapper" >
<mapper namespace="com.jz.dm.mall.moduls.mapper.TestMapper" >
<select id="getTest" resultType="map">
select * from dm_test;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment