zoukankan      html  css  js  c++  java
  • 前端入职项目问题总结

    新公司熟悉项目遇到的问题总结

    1. react项目、VSCODE配置eslint保存格式化
    {
        "editor.fontFamily": "Source Code Pro, Consolas, 'Courier New', monospace",
        "workbench.colorTheme": "One Dark Pro",
        "git.path": "C:/Program Files/Git/bin/git.exe",
        "editor.formatOnSave": true,
        "eslint.validate": [
            "javascript",
            "javascriptreact"
        ],
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": true
        }
    }
    
    1. git重置密码
    git config --system --unset credential.helper
    git config --global credential.helper store 
    

    输入结束之后就会提示重新输入git账号密码

    • 使用SSH密钥连接Github

    引用自 使用SSH密钥连接Github

    1. 单页应用类似react/vue,当使用browserHistory 做前端路由时,当访问类似/user/123/后端需要配置重定向到 index.html页面
    • 友情提示: java后端新建controller
    @RequestMapping("/api/**")
    public ApiResult api(HttpServletRequest request, HttpServletResponse response){
        return apiProxy.proxy(request, response);
    }
    
    @RequestMapping(value="/**", method=HTTPMethod.GET)
    public String index(){
        return "index"
    }
    
    
  • 相关阅读:
    右滑返回上一页
    flutter 启动图
    [题解]NOIP2014
    [题解]LightOJ1289 LCM from 1 to n
    [题解]CodeForces442B Andrey and Problem
    [题解]HDU4035 Maze
    [题解]CodeForces#290(div1)
    SCP-bzoj-1078
    SCP-bzoj-1068
    SCP-bzoj-1054
  • 原文地址:https://www.cnblogs.com/Lewiskycc/p/12551924.html
Copyright © 2011-2022 走看看