Bootstrap carousel-slider 在网页上不起作用

如何解决Bootstrap carousel-slider 在网页上不起作用

嗨,我最近开始使用引导程序,所以我是新手。我有一个很好的经验,因为它更容易构建和改编一个网站,因为我想使用那里的图书馆而不是我自己从头开始制作。现在我正在尝试将轮播滑块适应网站,但我一直失败。轮播从不出现。我曾尝试再次处理引导脚本和指向 html 文件的链接,但它不起作用。

下面的代码-----

<html lang="en">

<head>
  <title>Martín Opertti</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  <link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

  <div id="home">
    <nav class="navbar navbar-expand-md navbar-dark bg-dark navbar-fixed-top">

      <div class="container-fluid">

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02"
          aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
          <ul class="navbar-nav me-auto">
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="#">Home</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">About</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Research</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Data viz</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Contact</a>
            </li>
          </ul>

        </div>
      </div>
    </nav>

    <div class="background">
      <img src="perfilajustado4.png" class="img-fluid">
    </div>

    <div class="heading-content text-left">
      <h1>Martín <br>
        Opertti</h1>
    </div>
  </div>

  <div id="about" class="container mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">About me</h1>
      <hr class="w-50 mx-auto ">
    </div>
    <div class="row">
      <div class="col-lg-6 col-md-6 col-12 mt-0.5">
        <img src="imgilu3.png" class="img-fluid">
      </div>

      <div class="col-lg-6 col-md-6 col-12 mt-5 pt-5">
        <p> Soy licenciado en sociología y trabajo como Asistente (G. 2) en la Unidad de Métodos y Acceso a Datos
          (FCS-UDELAR),y asistente en proyectos de investigación sobre opinión pública y comportamiento político en el
          Departamento de Ciencias Sociales de la Universidad Católica del Uruguay,donde también soy docente de grado.
          Mi
          trabajo aparece en publicaciones como la Revista Latinoamericana de Opinión Pública y soy coautor del libro
          "Twittarquía,la política de las redes en Uruguay".</p>

        <h2>Skills</h2>
        <hr>
        <ul>
          <li>a</li>
          <li>b</li>
          <li>c</li>
          <li>d</li>
        </ul>

        <button class="btn w-50">
          <a href="#">Know More</a>

        </button>
      </div>

    </div>
  </div>
  <div id="research" class="container-fluid mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Research</h1>
      <hr class="w-50 mx-auto ">
    </div>

    <div id="myCarousel" class="carousel slide" data-ride="carousel">
      <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        
      </ol>
      <div class="carousel-inner">

        <div class="carousel-item active">


          <div class="container">

            <div class="row">

              <div class="col-lg-6 col-md-6 col-12 mt-3 pt-5">
                <h1>Stoic partisans</h1>
                <p class="pt-3"> The power of the electorate to reward or to punish governments for their performance is
                  one of the
                  pillars of
                  conventional democratic theory,with economic perceptions as one of the most important issues for the
                  public
                  opinion. However,there is an ongoing debate over whether causality also flows the other way. This
                  article
                  aims
                  to test whether partisanship shapes economic perceptions while extending the argument to the context
                  of
                  a
                  developing economy. Furthermore,it analyses the impact of not only the direction of partisanship but
                  also
                  it´s
                  strength,an overlooked feature in the partisan bias literature. The analysis,which aggregates an
                  unusually
                  rich data set of Uruguayans´ economic evaluations for the 2001-2019 period,presents strong evidence
                  for
                  the
                  argument that both the direction and strength of partisanship produce great bias in economic judgments
                  even in
                  a
                  developing economy context where citizens are more vulnerable to economic shocks. These findings
                  suggest
                  a
                  rather unsettling scenario for electoral accountability in a significant part of the Uruguayan
                  electorate.
                </p>
                <a href="#" class="btn btn-lg btn-primary mb-3">Read More</a>
              </div>
              <div class=" grafic col-lg-6 col-md-6 col-12 mt-5 ">
                <img src="ima6.png" class="img-fluid ">
              </div>
            </div>
          </div>
        </div>

        <div class="carousel-item">


          <div class="container">

            <div class="row">

              <div class="col-lg-6 col-md-6 col-12 mt-3 pt-5">
                <h1>Stoic partisans</h1>
                <p class="pt-3"> The power of the electorate to reward or to punish governments for their performance is
                  one of the
                  pillars of
                  conventional democratic theory,presents strong evidence
                  for
                  the
                  argument that both the direction and strength of partisanship produce great bias in economic judgments
                  even in
                  a
                  developing economy context where citizens are more vulnerable to economic shocks. These findings
                  suggest
                  a
                  rather unsettling scenario for electoral accountability in a significant part of the Uruguayan
                  electorate.
                </p>
                <a href="#" class="btn btn-lg btn-primary mb-3">Read More</a>
              </div>
              <div class=" grafic col-lg-6 col-md-6 col-12 mt-5 ">
                <img src="ima6.png" class="img-fluid ">
              </div>
            </div>
          </div>
        </div>

      </div>
    </div>

  </div>

  <div id="dataviz" class="container mt-3 pb-5 pt-5">
    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Data viz</h1>
      <hr class="w-50 mx-auto">
    </div>
    <div class="row">

      <div class="col-lg-4 col-md-6 col-12 pb-5">
        <div class="card">
          <img src="ima6.png" class="card-img-top" alt="...">
          <div class="card-body">
            <h5 class="card-title">Stoic partisans </h5>
            <p class="card-text">The political conditioning of economic perceptions in Uruguay. Revista
              Latinoamericana
              de Opinión Pública,9(1),67-88.</p>
            <a href="#" class="btn btn-primary">Read More</a>
          </div>
        </div>



      </div>

      <div class="col-lg-4 col-md-6 col-12 pb-5">
        <div class="card">
          <img src="ima6.png" class="card-img-top" alt="...">
          <div class="card-body">
            <h5 class="card-title">Stoic partisans </h5>
            <p class="card-text">The political conditioning of economic perceptions in Uruguay. Revista
              Latinoamericana
              de Opinión Pública,67-88.</p>
            <a href="#" class="btn btn-primary">Read More</a>
          </div>
        </div>



      </div>
    </div>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>







</body>

</html>```

----


Also I tried to errase some of the divs involved on the structure of the content inside the carousel but also I have no sucesess.
I colapsed the div that are not involved on the carousel. Hope someone could help me.

解决方法

问题是 -

  1. 如果你想使用 bootstrap-5,你必须使用 bootstrap-5 CDN,如果你想使用 bootstrap-4,你必须使用 bootstrap-4 CDN。

在 Bootstrap 5 中 data-* 属性被替换为 data-bs-*。

<button class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbar">

bootstrap-5 代码 -

<html lang="en">

<head>
  <title>Martín Opertti</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">

  
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
  <link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

  <div id="home">
    <nav class="navbar navbar-expand-md navbar-dark bg-dark navbar-fixed-top">

      <div class="container-fluid">

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02"
          aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
          <ul class="navbar-nav me-auto">
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="#">Home</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">About</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Research</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Data viz</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Contact</a>
            </li>
          </ul>

        </div>
      </div>
    </nav>

    <div class="background">
      <img src="perfilajustado4.png" class="img-fluid">
    </div>

    <div class="heading-content text-left">
      <h1>Martín <br>
        Opertti</h1>
    </div>
  </div>

  <div id="about" class="container mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">About me</h1>
      <hr class="w-50 mx-auto ">
    </div>
    <div class="row">
      <div class="col-lg-6 col-md-6 col-12 mt-0.5">
        <img src="imgilu3.png" class="img-fluid">
      </div>

      <div class="col-lg-6 col-md-6 col-12 mt-5 pt-5">
        <p> Soy licenciado en sociología y trabajo como Asistente (G. 2) en la Unidad de Métodos y Acceso a Datos
          (FCS-UDELAR),y asistente en proyectos de investigación sobre opinión pública y comportamiento político en el
          Departamento de Ciencias Sociales de la Universidad Católica del Uruguay,donde también soy docente de grado.
          Mi
          trabajo aparece en publicaciones como la Revista Latinoamericana de Opinión Pública y soy coautor del libro
          "Twittarquía,la política de las redes en Uruguay".</p>

        <h2>Skills</h2>
        <hr>
        <ul>
          <li>a</li>
          <li>b</li>
          <li>c</li>
          <li>d</li>
        </ul>

        <button class="btn w-50">
          <a href="#">Know More</a>

        </button>
      </div>

    </div>
  </div>
  <div id="research" class="container-fluid mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Research</h1>
      <hr class="w-50 mx-auto ">
    </div>

    <div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
      <ol class="carousel-indicators">
        <li data-bs-target="#myCarousel" data-bs-slide-to="0" class="active"></li>
        <li data-bs-target="#myCarousel" data-bs-slide-to="1"></li>
        
      </ol>
      <div class="carousel-inner">

        <div class="carousel-item active">


          <div class="container">

            <div class="row">

              <div class="col-lg-6 col-md-6 col-12 mt-3 pt-5">
                <h1>Stoic partisans</h1>
                <p class="pt-3"> The power of the electorate to reward or to punish governments for their performance is
                  one of the
                  pillars of
                  conventional democratic theory,with economic perceptions as one of the most important issues for the
                  public
                  opinion. However,there is an ongoing debate over whether causality also flows the other way. This
                  article
                  aims
                  to test whether partisanship shapes economic perceptions while extending the argument to the context
                  of
                  a
                  developing economy. Furthermore,it analyses the impact of not only the direction of partisanship but
                  also
                  it´s
                  strength,an overlooked feature in the partisan bias literature. The analysis,which aggregates an
                  unusually
                  rich data set of Uruguayans´ economic evaluations for the 2001-2019 period,presents strong evidence
                  for
                  the
                  argument that both the direction and strength of partisanship produce great bias in economic judgments
                  even in
                  a
                  developing economy context where citizens are more vulnerable to economic shocks. These findings
                  suggest
                  a
                  rather unsettling scenario for electoral accountability in a significant part of the Uruguayan
                  electorate.
                </p>
                <a href="#" class="btn btn-lg btn-primary mb-3">Read More</a>
              </div>
              <div class=" grafic col-lg-6 col-md-6 col-12 mt-5 ">
                <img src="https://dummyimage.com/vga" class="img-fluid ">
              </div>
            </div>
          </div>
        </div>

        <div class="carousel-item">


          <div class="container">

            <div class="row">

              <div class="col-lg-6 col-md-6 col-12 mt-3 pt-5">
                <h1>Stoic partisans</h1>
                <p class="pt-3"> The power of the electorate to reward or to punish governments for their performance is
                  one of the
                  pillars of
                  conventional democratic theory,presents strong evidence
                  for
                  the
                  argument that both the direction and strength of partisanship produce great bias in economic judgments
                  even in
                  a
                  developing economy context where citizens are more vulnerable to economic shocks. These findings
                  suggest
                  a
                  rather unsettling scenario for electoral accountability in a significant part of the Uruguayan
                  electorate.
                </p>
                <a href="#" class="btn btn-lg btn-primary mb-3">Read More</a>
              </div>
              <div class=" grafic col-lg-6 col-md-6 col-12 mt-5 ">
                <img src="https://dummyimage.com/vga" class="img-fluid ">
              </div>
            </div>
          </div>
        </div>

      </div>

      <a class="carousel-control-prev" href="#myCarousel" role="button" data-bs-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="carousel-control-next" href="#myCarousel" role="button" data-bs-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>

  </div>

  <div id="dataviz" class="container mt-3 pb-5 pt-5">
    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Data viz</h1>
      <hr class="w-50 mx-auto">
    </div>
    <div class="row">

      <div class="col-lg-4 col-md-6 col-12 pb-5">
        <div class="card">
          <img src="ima6.png" class="card-img-top" alt="...">
          <div class="card-body">
            <h5 class="card-title">Stoic partisans </h5>
            <p class="card-text">The political conditioning of economic perceptions in Uruguay. Revista
              Latinoamericana
              de Opinión Pública,9(1),67-88.</p>
            <a href="#" class="btn btn-primary">Read More</a>
          </div>
        </div>



      </div>

      <div class="col-lg-4 col-md-6 col-12 pb-5">
        <div class="card">
          <img src="ima6.png" class="card-img-top" alt="...">
          <div class="card-body">
            <h5 class="card-title">Stoic partisans </h5>
            <p class="card-text">The political conditioning of economic perceptions in Uruguay. Revista
              Latinoamericana
              de Opinión Pública,67-88.</p>
            <a href="#" class="btn btn-primary">Read More</a>
          </div>
        </div>



      </div>
    </div>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
  





</body>

</html>

和 bootstrap-4 代码:

<html lang="en">

<head>
  <title>Martín Opertti</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  
  <link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

  <div id="home">
    <nav class="navbar navbar-expand-md navbar-dark bg-dark navbar-fixed-top">

      <div class="container-fluid">

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02"
          aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
          <ul class="navbar-nav me-auto">
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="#">Home</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">About</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Research</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Data viz</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Contact</a>
            </li>
          </ul>

        </div>
      </div>
    </nav>

    <div class="background">
      <img src="perfilajustado4.png" class="img-fluid">
    </div>

    <div class="heading-content text-left">
      <h1>Martín <br>
        Opertti</h1>
    </div>
  </div>

  <div id="about" class="container mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">About me</h1>
      <hr class="w-50 mx-auto ">
    </div>
    <div class="row">
      <div class="col-lg-6 col-md-6 col-12 mt-0.5">
        <img src="imgilu3.png" class="img-fluid">
      </div>

      <div class="col-lg-6 col-md-6 col-12 mt-5 pt-5">
        <p> Soy licenciado en sociología y trabajo como Asistente (G. 2) en la Unidad de Métodos y Acceso a Datos
          (FCS-UDELAR),la política de las redes en Uruguay".</p>

        <h2>Skills</h2>
        <hr>
        <ul>
          <li>a</li>
          <li>b</li>
          <li>c</li>
          <li>d</li>
        </ul>

        <button class="btn w-50">
          <a href="#">Know More</a>

        </button>
      </div>

    </div>
  </div>
  <div id="research" class="container-fluid mt-3 pb-5 pt-5">

    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Research</h1>
      <hr class="w-50 mx-auto ">
    </div>

    <div id="myCarousel" class="carousel slide" data-ride="carousel">
      <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        
      </ol>
      <div class="carousel-inner">

        <div class="carousel-item active">


          <div class="container">

            <div class="row">

              <div class="col-lg-6 col-md-6 col-12 mt-3 pt-5">
                <h1>Stoic partisans</h1>
                <p class="pt-3"> The power of the electorate to reward or to punish governments for their performance is
                  one of the
                  pillars of
                  conventional democratic theory,presents strong evidence
                  for
                  the
                  argument that both the direction and strength of partisanship produce great bias in economic judgments
                  even in
                  a
                  developing economy context where citizens are more vulnerable to economic shocks. These findings
                  suggest
                  a
                  rather unsettling scenario for electoral accountability in a significant part of the Uruguayan
                  electorate.
                </p>
                <a href="#" class="btn btn-lg btn-primary mb-3">Read More</a>
              </div>
              <div class=" grafic col-lg-6 col-md-6 col-12 mt-5 ">
                <img src="https://dummyimage.com/vga" class="img-fluid ">
              </div>
            </div>
          </div>
        </div>

      </div>

      <a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>

  </div>

  <div id="dataviz" class="container mt-3 pb-5 pt-5">
    <div class="post-heading text-center pb-5">
      <h1 class="display-4  font-weight-bold">Data viz</h1>
      <hr class="w-50 mx-auto">
    </div>
    <div class="row">

      <div class="col-lg-4 col-md-6 col-12 pb-5">
        <div class="card">
          <img src="ima6.png" class="card-img-top" alt="...">
          <div class="card-body">
            <h5 class="card-title">Stoic partisans </h5>
            <p class="card-text">The political conditioning of economic perceptions in Uruguay. Revista
              Latinoamericana
              de Opinión Pública,67-88.</p>
            <a href="#" class="btn btn-primary">Read More</a>
          </div>
        </div>



      </div>
    </div>
  </div>

  <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>







</body>

</html>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-