首页 > 其他分享 >application.properties

application.properties

时间:2023-06-10 12:33:15浏览次数:32  
标签:spring classpath application static datasource servlet properties resources

server.port=8080

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3307/teachmanger?useSSL=false
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource

spring.thymeleaf.cache=false
server.servlet.encoding.force=true
server.servlet.encoding.enabled=true
server.servlet.encoding.charset=UTF-8

mybatis.mapper-locations=classpath:**/mapper/*.xml
mybatis.type-aliases-package=com.example.academicadministration.pojo

spring.web.resources.chain.strategy.content.enabled=true
spring.web.resources.chain.strategy.content.paths=/**



spring.mvc.static-path-pattern=/**

video=D:/JavaProject/AcademicAdministration/src/main/resources/static/video/

spring.web.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${video}

spring.servlet.multipart.max-file-size=4GB
spring.servlet.multipart.max-request-size=4GB
spring.webflux.multipart.headers-charset=UTF-8
mybatis.configuration.multiple-result-sets-enabled=true

 

标签:spring,classpath,application,static,datasource,servlet,properties,resources
From: https://www.cnblogs.com/liyiyang/p/17471089.html

相关文章

  • The specified DSN contains an architecture mismatch between the Driver and Appli
    ThespecifiedDSNcontainsanarchitecturemismatchbetweentheDriverandApplication如果希望DSN使用32位的驱动,应该使用c:\windows\sysWOW64\odbcad32.exe//z2013-01-1612:45:[email protected][T21,L319,R11,V383]1.Icreatedsystemdsninodbc32......
  • Macros for Build Commands and Properties
    //z2012-5-1712:35:17PMIS2120@CSDNPre:IFNOTEXIST$(IntDir)..\..\libmkdir$(IntDir)..\..\libPost:copy$(IntDir)$(ProjectName).lib$(IntDir)..\..\libupx.exe$(OutDir)../xxx.dll//z2012-5-1712:47:52PMIS2120@CSDNAddacallstatementbeforeal......
  • BeanUtils.copyProperties笔记
    阿里开发者手册:【强制】避免用ApacheBeanutils进行属性的copy。说明:ApacheBeanUtils性能较差,可以使用其他方案比如SpringBeanUtils,CglibBeanCopier,注意均是浅拷贝。本笔记使用的是:org.springframework.beans.BeanUtils#copyProperties资料参考: BeanUtils.co......
  • [spring-boot] 源码解读#org.springframework.boot.ApplicationArguments [转发]
    1ApplicationArguments概述1.1简述org.springframework.boot.ApplicationArguments接口提供对用于运行org.springframework.boot.SpringApplication的参数访问。ApplicationArguments接口只有一个实现类DefaultApplicationArguments。1.2使用示例示例1@SpringBootA......
  • 报错:[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined
    1.错误详情2.错误分析百度此错误发现,很多人可能忘记在main.js中引入store.js并挂载在vue实例上,或者state单词写错了我审查了很多遍代码,依然报错,读取不到state中的数据,后来想到可能是版本的问题此项目是vue2,要使用vuex3才能正常运行,我安装的时候没有指定版本,直接装的是最新的v......
  • 10_How deploy a Django application using Nginx & Gunicorn in Production
     地址:https://www.codewithharry.com/blogpost/django-deploy-nginx-gunicorn/  HowtohostDjangoApplicationusinggunicorn&nginxinProductionInthispost,wewillseehowtousenginxwithgunicorntoservedjangoapplicationsinproduction. Dj......
  • IO流 p11 Properties
    #Properties类基本介绍专门用于读写配置文件的集合类配置文件的格式:键=值键=值注意:键值对不需要有空格,值不需要用引号一起来。默认类型是String。Properties的常见方法load:加载配置文件的键值对到Properties对象;list:将数据显示到指定设备/流对象;getProperty......
  • Spring 学习笔记(2)—— ApplicationContext 及 WebApplicationContext 的初始化
    前言Spring通过一个配置文件描述Bean和Bean之间的依赖关系,利用Java语言的反射功能实例化Bean,并建立Bean之间的依赖关系。BeanFactory(com.springframework.beans.factory.BeanFactory)是Spring框架最核心的接口,提供了高级IoC的配置机制。BeanFactory使管理不同类型的......
  • Docker for Windows 中文文档(1)——Explore the application and run examples
    GetstartedwithDockerforWindows欢迎来到DockerforWindows!Docker是用于创建集装箱应用程序的完整开发平台,DockerforWindows是在Windows系统上开始使用Docker的最佳方式。检查DockerEngine,Compose和Machine的版本启动您最喜欢的shell(cmd.exe,PowerShell或其他)来检查docker......
  • 特殊文件:Properties属性文件
             ......