idea如何在tomcat发布项目
1、idea发布项目:首先在idea配置tomcat。如图:点击run,edit config...

2、点击左上角的加号,添加tomcat,这里可以配置端口号,以及访问地址,jre等参数;

1、<?xml version="1.0" encoding="UTF-8" ?>
<services>
<service data="com.tydic.upp.systemmanage.domain.vo.UppBusinessChannelVo" idGenerator="mysqlAutoIncrement" idStrategy="mysql" type="jdbc" >
<resultMap id="BaseResultMap" type="com.tydic.upp.systemmanage.domain.vo.UppBusinessChannelVo" >
<id column="strId" property="strId" jdbcType="VARCHAR" />
<result column="channelCode" property="channelCode" jdbcType="VARCHAR" />
<result column="channelName" property="channelName" jdbcType="VARCHAR" />

2、 <result column="isEnabled" property="isEnabled" jdbcType="INTEGER" />
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
<result column="updateUser" property="updateUser" jdbcType="VARCHAR" />

3、 </resultMap>
<sql id="Base_Column_List" >
id as strId, channel_code as channelCode, channel_name as channelName, is_enabled as isEnabled, update_time as updateTime, update_user as updateUser
</sql>
<get resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from upp_business_channel
where id = #{id,jdbcType=BIGINT}
</get>
<delete >

4、 delete from upp_business_channel
where id = #{id,jdbcType=BIGINT}
</delete>
<create >
insert into upp_business_channel
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="channelCode != null" >
channel_code,
</if>
<if test="channelName != null" >
channel_name,
</if>
<if test="isEnabled != null" >
is_enabled,
</if>
<if test="updateTime != null" >
update_time,

5、 </if>
<if test="updateUser != null" >
update_user,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=BIGINT},
</if>
<if test="channelCode != null" >
#{channelCode,jdbcType=VARCHAR},
</if>
<if test="channelName != null" >
#{channelName,jdbcType=VARCHAR},

6、 </if>
<if test="isEnabled != null" >
#{isEnabled,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateUser != null" >
#{updateUser,jdbcType=VARCHAR},
</if>
</trim>
</create>
<update >
update upp_business_channel
<set >
<if test="channelCode != null and channelCode !=''" >
channel_code = #{channelCode,jdbcType=VARCHAR},
</if>
<if test="channelName != null and channelCode !=''" >
channel_name = #{channelName,jdbcType=VARCHAR},
</if>
<if test="isEnabled != null" >
is_enabled = #{isEnabled,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateUser != null" >
update_user = #{updateUser,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<sql id="sql_where" >
<where >
<if test="filter.channelCode != null and filter.channelCode !=''" >
and channel_code = #{filter.channelCode,jdbcType=VARCHAR}