1: attribute 'prefix' and its alias 'value' are declared with values of [book] and [classpath:book.properties], but only one is permitted.

原因:原本是想将book.properties的值映射到book实体中的,但是发现@ConfigureProperties这个注解只有prefix属性并没有locations属性,不知道是不是版本的问题还是我导错了注解
      不使用locations属性的时候,这个注解只能映射默认的application.properties中的值,也就是其中以'prefix'开头的属性,这里也就是'book'
解决:尚未解决,先放下  以后研究

2:SpringBoot中HTML页面中js,css文件404

原因:springboot中默认资源文件放在static中的,也就是说我的js文件路径是src/main/resource/static/js/jquery.js,那么我们在templates中的a.html中使用"../js/juqery.js"就可以了,的确,这样写的前提是你没有设置过工程的context-path,
解决:../你设置的context-path/js/jquery.js