[java]idea设置及debug使用 IDEA修改选取单词颜色和搜索结果的颜色 tomcat部署项目报错,More than one fragment with the name [spring_web] was found. (亲测解决)Idea创建Maven Web工程的web.xml版本问题解决 idea插件 idea tomcat console乱码解决 类图中去除多余的线 安装jdk和maven 设置idea idea debug使用

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

tomcat部署项目报错,More than one fragment with the name [spring_web] was found.

maven clean了下解决

我还重新添加了下tomcat

(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0">
    
</web-app>

idea插件


idea tomcat console乱码解决

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

-Dfile.encoding=utf-8

追加后重启idea即可.

Idea中自动注释的缩进(避免添加注释自动到行首)
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

类图中去除多余的线

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

安装jdk和maven

先安装jdk(1.8)
后安装maven(3.6.6)

    <mirror>  
      <id>AliMaven</id>  
      <name>aliyun maven</name>  
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>;  
      <mirrorOf>central</mirrorOf>          
    </mirror>

用IDEA创建一个Maven工程并实现HelloServlet
Intellij IDEA使用spring-boot-devTools热部署无效解决方案

设置idea

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
双击shift, settings for设置
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用
[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

idea debug使用

如何有效的看源码, 帮我们更加深入的理解框架设计思想?
要领是关注我们需要关注的函数.

对于一些有输出效果的,可以直接看cosole. 查看关键函数.

对于一些没有输出效果的. 只能step over一行行?

idea deug使用

debug:
    f7: step info
        进入该行的函数
        如果改行没有函数,则进入下一步(和f8的效果一样)
    f8: step over
        跳到下一个断点
        如果没有下一个断点,则为该程序的下一行
            不进入该行的函数
            当然如果该行没有函数,则直接到下一行了

技巧: 如何看源码?

1.看输出
debug时候,
    1. 调到console, 
    2. 先f8 step over 如果cosole没反应,则继续f8
    3. 如果console有反应
        1.在该行打断点
        2.重新debug
    4.继续按f8,会直接跳到下一个断点.
    5.按f7 step into,进入函数,继续f8 依次执行,看哪行有输出,则打断点. 重复以上步骤 

其他

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

  • 变量窗口
    变量窗口:它可以查看当前方法范围内所有有效的变量。
    [java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

  • 方法调用栈窗口
    1、方法调用栈可以查看当前线程有哪些方法调用信息
    2、下面的调用上一行的方法
    [java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用

//递归测试

public class MyTest {
    public static void main(String[] args) {
        MyTest myTest = new MyTest();
        int sum = myTest.getSum(10);
        System.out.println(sum);
        //1 2 3 4 5
    }

    public int getSum(int n) {
        if (n == 1) {
            return 1;
        } else {
            return n + getSum(n - 1);
        }
    }
}

[java]idea设置及debug使用
IDEA修改选取单词颜色和搜索结果的颜色
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
(亲测解决)Idea创建Maven Web工程的web.xml版本问题解决
idea插件
idea tomcat console乱码解决
类图中去除多余的线
安装jdk和maven
设置idea
idea debug使用