javascript - Spring boot and Thymeleaf application: jquery is loading but not executing -


i have created simple spring boot application view loading jquery not executing it.details below: my project structure

[[1]

my controller

enter image description here

my jquerycode

enter image description here

my html page import jquery enter image description here

chrome inspector shows jquery loaded fine

enter image description here

but still jquery code not running, , if try running directly console., says jquery not defined

guys please tell me doing wrong / or missing.

if change the:

<script type="javascript" 

to

<script type="application/javascript" 

it should work, type='javascript' not defined media type according http://www.iana.org/assignments/media-types/media-types.xhtml


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -