增加oracle数据库配置和脚本 更新readme
This commit is contained in:
parent
29ee1d510f
commit
5d63ebd46c
|
@ -48,8 +48,9 @@
|
||||||
- 18/6/12 **增加sqlserver支持,脚本在db文件夹下,
|
- 18/6/12 **增加sqlserver支持,脚本在db文件夹下,
|
||||||
只需要在application.yml 切换下active 即可切换数据源**
|
只需要在application.yml 切换下active 即可切换数据源**
|
||||||
- 18/6/19 **集成丰富持久化插件tkmapper**
|
- 18/6/19 **集成丰富持久化插件tkmapper**
|
||||||
- 18/12/11 **添加博客功能模块,集成redis缓存,
|
- 18/12/11 **添加博客功能模块,集成redis缓存**
|
||||||
博客采用vue前后分离基于jwt鉴权,博客单独分离出一个项目**
|
- 19/4/5 **优化shiro配置,增加 oracle支持 群(137738503)里有配置好的源码**
|
||||||
|
**博客采用vue前后分离基于jwt鉴权,博客单独分离出一个项目**
|
||||||
## 头像说明
|
## 头像说明
|
||||||
```
|
```
|
||||||
修改 application.yml imagePath 路径 把image文件夹图片赋值进路径,即可正常展示头像
|
修改 application.yml imagePath 路径 把image文件夹图片赋值进路径,即可正常展示头像
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,68 @@
|
||||||
|
server:
|
||||||
|
port: 8081
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: jdbc:oracle:thin:@localhost:1521:orcl
|
||||||
|
username: LEN
|
||||||
|
password: 111111
|
||||||
|
# 使用druid数据源
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
# 由于 maven没有 oracle驱动 所以 驱动放在了 db文件夹下面,支持oracle 11g 以及更高版本 如果对配置有疑问
|
||||||
|
# 可以加群 137738503 群里有配置好的源码
|
||||||
|
driver-class-name: oracle.jdbc.driver.OracleDriver
|
||||||
|
filters: stat
|
||||||
|
maxActive: 20
|
||||||
|
initialSize: 1
|
||||||
|
maxWait: 60000
|
||||||
|
minIdle: 1
|
||||||
|
timeBetweenEvictionRunsMillis: 60000
|
||||||
|
minEvictableIdleTimeMillis: 300000
|
||||||
|
validationQuery: select 'x'
|
||||||
|
testWhileIdle: true
|
||||||
|
testOnBorrow: false
|
||||||
|
testOnReturn: false
|
||||||
|
poolPreparedStatements: true
|
||||||
|
maxOpenPreparedStatements: 20
|
||||||
|
http:
|
||||||
|
encoding:
|
||||||
|
force: true
|
||||||
|
boot:
|
||||||
|
admin:
|
||||||
|
client:
|
||||||
|
prefer-ip: true
|
||||||
|
url: http://localhost:8082
|
||||||
|
|
||||||
|
mybatis:
|
||||||
|
type-aliases-package: com.len.entity
|
||||||
|
mapper-locations: classpath*:mapper/*.xml
|
||||||
|
check-config-location: true
|
||||||
|
|
||||||
|
mapper:
|
||||||
|
mappers:
|
||||||
|
- com.len.base.BaseMapper
|
||||||
|
not-empty: false
|
||||||
|
identity: oracle
|
||||||
|
|
||||||
|
|
||||||
|
# PageHelperConfig 可以替代此方案
|
||||||
|
pagehelper:
|
||||||
|
helperDialect: oracle
|
||||||
|
reasonable: true
|
||||||
|
supportMethodsArguments: true
|
||||||
|
params: count=countSql
|
||||||
|
|
||||||
|
lenosp:
|
||||||
|
uploadPath: ./file/
|
||||||
|
isDayType: false
|
||||||
|
|
||||||
|
imagePath: ./image/
|
||||||
|
|
||||||
|
logging:
|
||||||
|
file: ./logs/lenosp-log.log
|
||||||
|
level:
|
||||||
|
com.len.mapper: debug
|
||||||
|
|
||||||
|
dataType: oracle
|
||||||
|
|
||||||
|
redis:
|
||||||
|
prefix: len_
|
Loading…
Reference in New Issue