title: Uncaught ReferenceError: Define is not defined in Ember/Springboot
body: <p>I know topic sounds duplicate but the problem that I am facing is different than other forums.</p>
  <p>I am integrating my ember app with spring web app. I copied the index.html from the <code>dist</code> folder of ember to the <code>src/main/webapp</code> folder of spring app.</p>
  <p>I am getting following error:</p>
  <blockquote>
  <p>app.js:1 Uncaught ReferenceError: define is not defined(…)(anonymous function) @ app.js:1</p>
  </blockquote>
  <p>I followed some <a href="https://web.archive.org/web/20180326152814/http://ygrails.com/spring-boot/spring-boot-emberjs/" rel="nofollow noreferrer">instructions I found</a> to integrate the ember app:</p>
  <blockquote>
  <p>You would have already noticed that ember.js runs on its on server and uses a different port to your spring boot application. The good thing is that, you don’t have to start ember server for using ember.js in your application. There is workaround. The below steps would explain how.</p>
  <ol>
  <li>Copy your index.html from “src/main/webapp/dist” folder to “src/main/webapp” folder.</li>
  <li>Open index.html in your editor and update path all css and js files from “assets/xxx.xx” to “dist/assets/xxx.xx”. This is because all your framework related files are bundled in this folders and these are the only files you need.</li>
  </ol>
  <p>Now run you Spring Boot application and access localhost:8080 and you would see your ember home page!</p>
  </blockquote>
  <p><strong>Note:</strong> When I run the ember app separately using ember server, the site is loading properly.</p>