第一步:
在全局配置文件(application.properties)中禁用thymeleaf模板引擎的緩存,緩存是默認開啓的
spring.thymeleaf.cache=false
第二步:
在idea中按 ctrl+f9 重新編譯一下html文件。
建議:開發環境中可以禁用thymeleaf模板引擎的緩存,提高開發效率,但是生產環境中建議開啓。
第一步:
在全局配置文件(application.properties)中禁用thymeleaf模板引擎的緩存,緩存是默認開啓的
spring.thymeleaf.cache=false
第二步:
在idea中按 ctrl+f9 重新編譯一下html文件。
建議:開發環境中可以禁用thymeleaf模板引擎的緩存,提高開發效率,但是生產環境中建議開啓。
def ADD(a): print(3,a,hex(id(a))) a.remove(2) print(3,a,hex(id(a))) a=a.append(10)