Commit 9bdaee7b20f7aa75797006e8a7a60c1d63276bba
1 parent
aef173b8
Exists in
master
1.字符编码问题处理
Showing
2 changed files
with
20 additions
and
1 deletions
Show diff stats
build.gradle
@@ -36,6 +36,10 @@ task sourcesJar(type: Jar, dependsOn: classes) { | @@ -36,6 +36,10 @@ task sourcesJar(type: Jar, dependsOn: classes) { | ||
36 | from sourceSets.main.allSource | 36 | from sourceSets.main.allSource |
37 | } | 37 | } |
38 | 38 | ||
39 | +tasks.withType(JavaCompile) { | ||
40 | + options.encoding = "UTF-8" | ||
41 | +} | ||
42 | + | ||
39 | artifacts { | 43 | artifacts { |
40 | archives sourcesJar | 44 | archives sourcesJar |
41 | } | 45 | } |
@@ -51,7 +55,7 @@ uploadArchives { | @@ -51,7 +55,7 @@ uploadArchives { | ||
51 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) | 55 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
52 | } | 56 | } |
53 | pom.project { | 57 | pom.project { |
54 | - version '1.2.12' | 58 | + version '1.2.13' |
55 | artifactId ARTIFACT_Id | 59 | artifactId ARTIFACT_Id |
56 | groupId GROUP_ID | 60 | groupId GROUP_ID |
57 | packaging TYPE | 61 | packaging TYPE |
src/main/java/com/taover/codegenerate/ssapi/SsapiJavaGenerater.java
0 → 100644
@@ -0,0 +1,15 @@ | @@ -0,0 +1,15 @@ | ||
1 | +package com.taover.codegenerate.ssapi; | ||
2 | + | ||
3 | +import java.io.File; | ||
4 | + | ||
5 | +import com.taover.codegenerate.bazhuayun.GenerateCode; | ||
6 | + | ||
7 | +public class SsapiJavaGenerater { | ||
8 | + public static void main(String args[]){ | ||
9 | + try { | ||
10 | + GenerateCode.generateEntity("com.songshuyun.java.entity", "message_group,message_group_contact", "D:"+File.separator+"dblist", "127.0.0.1", "3306", "tylife", "lexi365", "songshuyun_stat", false); | ||
11 | + } catch (Exception e) { | ||
12 | + e.printStackTrace(); | ||
13 | + } | ||
14 | + } | ||
15 | +} |