美文网首页
常用配置文件

常用配置文件

作者: 慵懒的阳光丶 | 来源:发表于2019-06-19 13:57 被阅读0次

一. SSM中

mysql的配置

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/mytest
jdbc.username=root
jdbc.password=root

Oracle的配置

jdbc.driver_class=oracle.jdbc.driver.OracleDriver    //数据库驱动
jdbc.connection.url=jdbc:oracle:thin:@localhost:1521:orcl   //数据库地址
jdbc.connection.username=c##wuyong//数据库名称
jdbc.connection.password=//数据库密码

二. SpringBoot中

mysql数据源

spring:
 datasource:
   driver-class-name: com.mysql.cj.jdbc.Driver
   url: jdbc:mysql://localhost:3306/leyou?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=UTC
   username: root
   password: root

三.常用的头文件

1.mybatis映射头文件

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

2.Thymeleaf名称空间

<html xmlns:th="http://www.thymeleaf.org">

相关文章

  • logging 常用配置文件

    logging 常用配置文件

  • Springboot 常用注解举例

    Http 常用注解: Json 格式返回常用注解: 引入配置文件:

  • Kubectl 常用命令

    常用命令 YAML配置文件管理对象

  • Spring Boot配置文件简单介绍

    Spring Boot对配置文件支持非常友好,支持*.properties和*.yml,前者是常用的配置文件,后者...

  • 010.Debian系统基本操作

    1. Debian系统基本操作 1.1 常用服务配置文件路径 网卡配置文件:/etc/network/interf...

  • 常用配置文件

    一. SSM中 mysql的配置 Oracle的配置 二. SpringBoot中 mysql数据源 三.常用的头...

  • redis

    redis配置文件概括说明 redis 常用配置 redis 主从复制 配置文件修改 手动修改 redis 哨兵部...

  • supervisorctl

    安装(pip安装) pip安装supervisord 生成配置文件 载入配置文件 常用命令 安装(文件安装) 添加...

  • SpringBoot 配置详解

    Spring Boot配置文件详解 Spring Boot提供了两种常用的配置文件,分别是properties文件...

  • Nginx介绍

    1.Nginx常用命令(启动/重启/停止/测试配置文件/重新加载配置文件) -c:使用指定的配置文件而不是conf...

网友评论

      本文标题:常用配置文件

      本文链接:https://www.haomeiwen.com/subject/fjewzqtx.html