随笔分类 - Web
摘要:在WEB-INF下创建一个lib目录,将所需要的本地jar包导入 然后在创建的maven项目中加入配置:
阅读全文
摘要:方法1、 WIN系统,在catalina.bat里: SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8
阅读全文
摘要:<insert id="insert" parameterType="com.mall.pojo.OrderItem" useGeneratedKeys="true" keyProperty="id"> insert into mmall_order_item (id, user_id, order
阅读全文
摘要:server { listen 80; autoindex off; server_name image.imooc.com; access_log c:/access.log combined; index index.html index.htm index.jsp index.php; #er
阅读全文
摘要:SELECT<include refid="Base_Column_List"/>FROMmmall_product<where> <if test="productName != null"> and name=#{productName} </if> <if test="productId">
阅读全文
摘要:1.logback.xml
阅读全文
摘要:引入mybatis三剑客 1.mybatis-generator,在resources下新建generatorConfig.xml,配置文件详细信息如下 其中的detail和sub_image为text类型,jdbcType中没有text类型,需转化成varchar类型. mybatis-gener
阅读全文
摘要:1.web.xml配置注解<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/ja
阅读全文
摘要:新建一个maven -achetype-webapp项目,建好完善后基本的目录,然后配置tomcat,在deployment里引入artifact,第一次建的时候发现没有artifact,可能是module之类的没有初始化好,当时也没有吧maven的依赖import changes,不知道默认的we
阅读全文
浙公网安备 33010602011771号