spring-petclinic / spring-petclinic-angularjs

AngularJS 1 and Spring Boot 2 version of the Spring Petclinic sample application
72 stars 95 forks source link

jquery.min.js not found #13

Closed phxism closed 7 years ago

phxism commented 7 years ago

spring-petclinic-server\src\main\resources\templates\index.html Line 18,

will not be found when rendering
arey commented 7 years ago

The jquery.min.js path has changed in my last commit: 12da098bba14aecfd0a8e39af4a64f954e40ef61 Did you try to rebuild your project? On my desktop I've don't have this issue :

Request URL:http://localhost:8080/jquery/dist/jquery.min.js Request Method:GET Status Code:200 Remote Address:[::1]:8080

phxism commented 7 years ago

I git clone two copy of the code in two folder and run the build command in two console, but get different result, two folder bower_components\jquery have two types of jquery the file .bower.json content are not the same : One

{
  "name": "jquery",
  "main": "dist/jquery.js",
  "license": "MIT",
  "ignore": [
    "package.json"
  ],
  "keywords": [
    "jquery",
    "javascript",
    "browser",
    "library"
  ],
  "homepage": "https://github.com/jquery/jquery-dist",
  "version": "3.2.1",
  "_release": "3.2.1",
  "_resolution": {
    "type": "version",
    "tag": "3.2.1",
    "commit": "77d2a51d0520d2ee44173afdf4e40a9201f5964e"
  },
  "_source": "https://github.com/jquery/jquery-dist.git",
  "_target": "1.9.1 - 3",
  "_originalSource": "jquery"
}

the other

{
  "name": "jquery",
  "version": "3.2.1",
  "description": "jQuery component",
  "license": "MIT",
  "keywords": [
    "jquery",
    "component"
  ],
  "main": "jquery.js",
  "ignore": [
    "component.json",
    "package.json",
    "composer.json"
  ],
  "homepage": "https://github.com/components/jquery",
  "_release": "3.2.1",
  "_resolution": {
    "type": "version",
    "tag": "3.2.1",
    "commit": "e5534d4ab8e80c159553d507e358ed20a806d3bf"
  },
  "_source": "https://github.com/components/jquery.git",
  "_target": "~3.2.1",
  "_originalSource": "components/jquery"
}

I thing that why jquery.min.js is available sometimes and unavailable either.I dont what has causes this problem .I run bower install jquery , it refers to "https://github.com/jquery/jquery-dist.git"

arey commented 7 years ago

I've got the same issue by cloning the repo in a new workspace.

arey commented 7 years ago

I let you try the patch