rest - Issue with starting application Spring MVC + Grunt + JHipster + AngularJS -


i using spring mvc in restful web aplication run using maven. have 2 profiles:

  1. development profile, works on hsql , oracle. build application, , works great.

  2. production profile, using grunt javascript task runner, minification javascript, css , html files.

when run application in "prod" profile, maven building application using grunt. grunt job properly, change files based on configuration in gruntfile.js. files changed , saved in dist folder, , new index.html file created references newly generated css , javascript files. build app successfully.

the problem is, when start app on http://localhost:8080, load css , javascript files dist folder , make call get login, stuck here (using firebug in firefox browser):

enter image description here

not 1 rest call made application. when start application in working dev profile, first call rest/authenticate, in prod profile, never gets there. when turn on logs spring framework, can see antpathrequestmatcher gets stuck after checking favicon.ico, , never gets rest/authenticate. seams javascript code not initialized can make rest calls?!

i think made configuration in webconfigrurer.java, securityconfiguration.java, dispatcherservletconfiguration.java... can't resolve issue.

if had similar problem, appreciate if he/she helps me. thanks.

yes, sounds javascript isn't running. errors in firebug console?


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -