Skip to content

Instantly share code, notes, and snippets.

@kntmr
Last active August 23, 2017 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kntmr/b961eb0d723dc938e2468d2450c65370 to your computer and use it in GitHub Desktop.
Save kntmr/b961eb0d723dc938e2468d2450c65370 to your computer and use it in GitHub Desktop.
vue + axios + spring-boot

備忘録

package.json

npm init

ライブラリインストール

npm install --save-dev webpack-dev-server webpack vue-template-compiler vue-loader
npm install --save vue axios

require / import

require は Node.js の記法、import は ES6 の記法。(たぶん)

Cross-Origin Resource Sharing (CORS)

Controller のハンドラメソッドに @CrossOrigin を指定する。

Enabling Cross Origin Requests for a RESTful Web Service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment