目录

常见问题

# 如何携带当前路径到登录页

    next(`/login?redirect=${to.fullPath}`)
    
    1
    import router from '@/router'
    
    router.push(`/login?redirect=${router.currentRoute.fullPath}`)
    
    1
    2
    3
    // Make sure to add code blocks to your code group

    # 如何引入系统依赖

    <dependency>
        <groupId>com.itheima</groupId>
        <artifactId>artifactId</artifactId>
        <version>version</version>
        <scope>system</scope>
        <systemPath>${basedir}/lib/artifactId-version.jar</systemPath>
    </dependency>
    
    1
    2
    3
    4
    5
    6
    7

    一个项目的 pom.xml 如果使用了 scopesystem 的依赖后,会导致传递依赖中断,此时需要配置打包时包含系统依赖

    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <includeSystemScope>true</includeSystemScope>
        </configuration>
    </plugin>
    
    1
    2
    3
    4
    5
    6
    7
    上次更新: 2022-10-28 22:23:08