web相关:
server.port=8080 server.address=127.0.0.1 contextPath=/ spring.mvc.view.prefix=/WEB-INF/jsp spring.mvc.view.suffix=.jsp spring.freemarker.templateLoaderPath=classpath:/ftl/ spring.resources.staticLocations=classpath:/html/
数据库相关:
spring.datasource.driverClassName=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3309/imooc-demo spring.datasource.username=root spring.datasource.password=123456
认证相关:
spring.session.store-type=none:引入了spring-session时需要配置,否则启动报错,none为关掉配置 security.basic.enabled=false:引入了spring-security时需要配置,否则访问url默认会让登陆,false不登录