File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 126126 <dependency >
127127 <groupId >com.alibaba</groupId >
128128 <artifactId >fastjson</artifactId >
129- <version >1.1.26 </version >
129+ <version >1.2.61 </version >
130130 </dependency >
131131 </dependencies >
132132
Original file line number Diff line number Diff line change 1212
1313@ SpringBootApplication
1414@ PropertySource ("application.properties" )
15- public class PortraitApplication extends SpringBootServletInitializer {
15+ public class Application extends SpringBootServletInitializer {
1616
1717 @ Bean
1818 public MultipartConfigElement multipartConfigElement () {
@@ -29,10 +29,10 @@ public MultipartConfigElement multipartConfigElement() {
2929
3030 @ Override
3131 protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
32- return application .sources (PortraitApplication .class );
32+ return application .sources (Application .class );
3333 }
3434
3535 public static void main (String [] args ) {
36- SpringApplication .run (PortraitApplication .class , args );
36+ SpringApplication .run (Application .class , args );
3737 }
3838}
Original file line number Diff line number Diff line change 11package com .changyu .foryou .config ;
22
33import com .alibaba .druid .pool .DruidDataSource ;
4- import com .mysql .cj .jdbc .Driver ;
54import org .mybatis .spring .SqlSessionFactoryBean ;
65import org .mybatis .spring .mapper .MapperScannerConfigurer ;
76import org .springframework .context .annotation .Bean ;
1413import org .springframework .jdbc .datasource .DataSourceTransactionManager ;
1514import org .springframework .transaction .annotation .EnableTransactionManagement ;
1615
16+ import com .mysql .jdbc .Driver ;
17+
1718/**
1819 * Created by zhengzh on 2016/8/17.
1920 */
Original file line number Diff line number Diff line change 11# mybatis
2- mybatis.type-aliases-package =com.nawaa.portrait.models
2+ mybatis.type-aliases-package =com.changyu.foryou.model
33mybatis.mapper-locations =classpath:com/changyu/foryou/mapping/*.xml
44mybatis.configuration.map-underscore-to-camel-case =false
55mybatis.configuration.default-fetch-size =10
@@ -11,7 +11,7 @@ mybatis.config-location=classpath:mybatis.xml
1111spring.datasource.url =jdbc:mysql://localhost:3306/foryou?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&nullNamePatternMatchesAll=true
1212spring.datasource.name =foryou
1313spring.datasource.username =root
14- spring.datasource.password =zc0829
14+ spring.datasource.password =******
1515validationQuery =SELECT 1
1616
1717server.port =8080
You can’t perform that action at this time.
0 commit comments