idea如何在tomcat发布项目

2025-10-19 17:08:27

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

idea如何在tomcat发布项目

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

idea如何在tomcat发布项目

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" />

      

idea如何在tomcat发布项目

2、  <result column="isEnabled" property="isEnabled" jdbcType="INTEGER" />

        <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />

        <result column="updateUser" property="updateUser" jdbcType="VARCHAR" />

   

idea如何在tomcat发布项目

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 >

      

idea如何在tomcat发布项目

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,

    

idea如何在tomcat发布项目

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},

      

idea如何在tomcat发布项目

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}

  

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢