config : gradle com.ewerk.gradle.plugins.querydsl plugin 제거

Gradle Annotation processor를 사용하도록 설정 변경
dev
minuk926 3 years ago
parent 3328bf0214
commit 96c957b851

@ -260,6 +260,15 @@ tasks.withType(JavaCompile) {
//-----------------------------------------------------------------------------------// //-----------------------------------------------------------------------------------//
/** clean 태스크 실행시 QClass 삭제 */ /** clean 태스크 실행시 QClass 삭제 */
/**
* Intellij IDEA - Build, Execution, Deployment - Build tools Gradle Build and run Annotation processor
* Gradle: build/generated/sources/annotationProcessor/java/main
* Q clean
* IntellijI IDEA: src/main/generated
* Compiler Annotation procesoors
* Q , Q
* Build, Execution, Deployment - Compiler -> Enable annotaion processing
*/
clean { clean {
delete file('src/main/generated') // Annotation processor delete file('src/main/generated') // Annotation processor
} }

@ -27,23 +27,5 @@ public class XitFrameworkApplicationCommandLineRunner implements CommandLineRunn
//System.out.println(new SCryptPasswordEncoder().encode("gnadmin")); //System.out.println(new SCryptPasswordEncoder().encode("gnadmin"));
//System.out.println(new DelegatingPasswordEncoder().encode("gnadmin", "")); //System.out.println(new DelegatingPasswordEncoder().encode("gnadmin", ""));
//System.out.println(new Pbkdf2PasswordEncoder().encode("gnadmin")); //System.out.println(new Pbkdf2PasswordEncoder().encode("gnadmin"));
String url = "jdbc:oracle:thin:@211.119.124.118:1521:bustms";
String username = "traffic";
String password = "xhdgkq0";
System.out.println(jasyptEncoding(url));
System.out.println(jasyptEncoding(username));
System.out.println(jasyptEncoding(password));
}
private String jasyptEncoding(String value) {
String key = "xit_jasypt_key";
StandardPBEStringEncryptor pbeEnc = new StandardPBEStringEncryptor();
pbeEnc.setAlgorithm("PBEWithMD5AndDES");
pbeEnc.setPassword(key);
return pbeEnc.encrypt(value);
} }
} }

@ -6,7 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ActiveProfiles;
@SpringBootTest @SpringBootTest
@ActiveProfiles(value="dev") //@ActiveProfiles(value="dev")
class JasyptApplicationTests { class JasyptApplicationTests {
@Test @Test

Loading…
Cancel
Save