随笔分类 - [14] Java/JSP
Java/JSP
摘要:IDEA同时打开多个项目 File -> settings -> Appearance & Behavior -> System Settings, 右边会出现 Open project in ,选择第一个“new window“,设置后,再打开一个项目的话会重新打开一个窗口。
阅读全文
摘要:Java & IDEA Java 中的几种实体类对象 (PO,VO,DAO,BO,POJO) IDEA中 Project 和 Module 的区别 IDEA 的文件夹的类型说明 MyBatis MyBatis入门 优缺点(优点和缺点) MyBatis入门 创建一个简单的程序 Mybatis入门 My
阅读全文
摘要:接口管理现状 目前常用的解决方案如下: 使用 Swagger 管理接口文档 使用 Postman 调试接口 使用 RAP Mock 数据 使用 JMeter 做接口自动化测试 ref https://zhuanlan.zhihu.com/p/423521918
阅读全文
摘要://ERROR No qualifying bean of type 'org.springframework.context.ApplicationContext' available applicationContext.getBean(ApplicationContext.class); //
阅读全文
摘要:@RestController is a stereotype annotation that combines @ResponseBody and @Controller.意思是:@RestController注解相当于@ResponseBody + @Controller合在一起的作用。 1)如
阅读全文
摘要:方法1:(可行)只能查看部分 getBeanDefinitionNames 中的Bean。 package com.itheima.controller; import org.springframework.beans.factory.annotation.Autowired; import or
阅读全文
摘要:java: Compilation failed: internal java compiler error 1、查看项目的jdk(Ctrl+Alt+shift+S)File ->Project Structure->Project Settings ->Project 2、查看工程的jdk(Ctr
阅读全文
摘要:User 实体类 package com.itheima.domain; import java.io.Serializable; public class User implements Serializable { private Integer id; //用户id private Strin
阅读全文
摘要:idea Spring 中使用@Data 使用get和set方法1.添加 lombok 插件setting -》plugin -》browse repositories -》搜索 lombok -》install -》restart2.pom.xml 加上依赖 <dependency> <group
阅读全文
摘要:配置方式 手把手教你 SSM 整合 https://blog.csdn.net/qq_25233621/article/details/102792862 该篇帖子主要是xml配置方式,少量注释方式。 SSM三大框架整合详细教程(Spring+SpringMVC+MyBatis) https://w
阅读全文
摘要:1 各类Web服务器默认servlet名称 Web容器默认servlet名称 Tomcat, Jetty, JBoss, and GlassFish default Google App Engine _ah_default Resin resin-file WebLogic FileServlet
阅读全文
摘要:<mvc:default-servlet-handler/> 这个Spring MVC xml文件的属性,主要是处理web项目的静态文件问题。 每次请求过来,先经过 DefaultServletHttpRequestHandler 判断是否是静态文件,如果是静态文件,则进行处理,不是则放行交由 Di
阅读全文
摘要:@CookieValue注解org.springframework.web.bind.annotation包下的 @CookieValue注解,该注解类型用于将请求的Cookie数据映射到功能处理方法的参数上。同样,它和@RequestHeader,还有@RequestParam注解一样,有相同的4
阅读全文
摘要:org.springframework.web.bind.annotation包下 @RequestHeader注解,该注解类型用于将请求的头的信息区域数据映射到功能处理方法的参数上。 那么@RequestHeader注解有什么属性呢?它和@RequestParam注解一样,也有4种属性,分别如下:
阅读全文
摘要:@PathVaribale注解 org.springframework.web.bind.annotation 包下的 @PathVaribale 注解,该注解类型可以非常方便的获得请求url中的动态参数。@PathVaribale注解只支持一个属性value,类型String,表示绑定的名称,如果
阅读全文
摘要:org.springframework.web.bind.annotation包下 @RequestParam 注解,该注解类型用于将指定的请求参数赋值给方法中的形参。那么@RequestParam注解有什么属性呢?它有4种属性,下面将逐一介绍这四种属性: 1、name属性 该属性的类型是Strin
阅读全文
摘要:Spring @EnableWebMvc @Configuration表示这是Java配置类; @EnableWebMvc注解用于启动Spring MVC特性。
阅读全文
摘要:@ComponentScan 与ComponentScan注解相对应的XML配置就是<context:component-scan/>, 根据指定的配置自动扫描 package,将符合条件的组件加入到IOC容器中; @ComponentScan用于类或接口上主要是指定扫描路径,spring会把指定路
阅读全文
摘要:Spring @Configuration @Configuration 用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被 @Bean 注解的方法,这些方法将会被 AnnotationConfigApplicationContext 或 AnnotationConfigWebA
阅读全文
摘要:@Autowired @Autowired 默认按类型匹配的方式,在容器查找匹配的Bean,当有且仅有一个匹配的Bean时,Spring 将其注入到 @Autowired 标注的变量中。 如果容器中没有一个和标注变量类型匹配的 Bean,Spring容器启动时将报 NoSuchBeanDefinit
阅读全文