Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ```bash
  2. npm install -g @vue/cli
  3. vue ui
  4. ```
  5. **vue ui에서 프로젝트 생성**
  6.  
  7. **application.properties**
  8. ```properties
  9. spring.mvc.static-path-pattern=/static/**
  10. spring.resources.static-locations=classpath:/static/
  11. spring.resources.add-mappings=true
  12. server.port='port'
  13. ```
  14.  
  15. **vue.config.js**
  16.  
  17. ```javascript
  18. module.exports = {
  19. publicPath: process.env.NODE_ENV === 'production'?'./static/' : '/',
  20. outputDir: '../../src/main/resources/static/',
  21. productionSourceMap: false
  22. }
  23. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement