08 2020 档案
摘要:1.IllegalStateException 配置文件异常 2.BeanCreationException bean创建异常 找不到对应的类型 Saxpase Exception xml配置解析错误 3.NOsuch Exception 未定义异常 4.UnsatisfiedDependencyE
阅读全文
摘要:1. 接口配置: package com.itheima.dao; import com.itheima.domain.Student;import org.apache.ibatis.annotations.Select; import java.util.List; public interfa
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
阅读全文
摘要:第一步、导包(或者导入坐标) <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.2</version> </dependency> 第二步、配置
阅读全文
摘要:<dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.32</version> </dependency> <dependency
阅读全文
摘要:Spring是轻代码而重配置的框架,配置比较繁重,影响开发效率,所以注解开发是一种趋势,注解代替xml配置文 件可以简化配置,提高开发效率。 Spring原始注解主要是替代的配置 注意: 使用注解进行开发时,需要在applicationContext.xml中配置组件扫描,作用是指定哪个包及其子包下
阅读全文
摘要:一、组件型注解: @Component 在类定义之前添加@Component注解,他会被spring容器识别,并转为bean。 @Repository 对Dao实现类进行注解 (特殊的@Component) @Service 用于对业务逻辑层进行注解, (特殊的@Component) @Contro
阅读全文
摘要:pom.xml文件 <dependencies> <dependency> <groupId>com.pinyougou</groupId> <artifactId>pinyougou_dao</artifactId> <version>1.0-SNAPSHOT</version> </depend
阅读全文
摘要:SQLMap.xml <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-
阅读全文
摘要:1:spring的核心配置文件中的各种配置。 spring的核心配置文件的名字 叫做 applicationContext.xml,后期也可以通过配置文件中的配置修改名称,在web.xml中进行如下配置: <context-param> <param-name>contextConfigLocati
阅读全文
摘要:0 . 引入包属性<properties> <dubbo.version>2.8.4</dubbo.version> <zookeeper.version>3.4.7</zookeeper.version> <zkclient.version>0.1</zkclient.version> <myba
阅读全文
摘要:1. netstat -tunlp|grep 22 查看启动端口号信息2. netstat -antp | grep ssh 查看端口和服务3. lsof -i:8080 查看端口信息(pid)4. ps -ef|grep pid 查看该pid的进程的详细信息;5. tail -f catalina
阅读全文

浙公网安备 33010602011771号