asciidoctor 用spring boot 2 打包运行报错: no such file to load — asciidoctor 问题: 打包成 jar 运行相关代码会报错: Caused by: org.jruby.exceptions.… Read More
flyway mysql8 报错 Exception in thread “main” java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 问题: Exception in thread “main” java.… Read More
spring boot 提示 Not a managed type: class 问题: spring boot 提示 Not a managed type: class 是采用 maven … Read More
spring-core demo basic package demo.core1; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.stereotype.Component; /** * * @author 老唐 */ public class App { /** * * @author 老唐 */ @Component public static class Bean1 { public String getMsg() { return "你好"; } } public static void main(String[] argv) { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("demo.core1"); final Bean1 b1 = ctx.getBean(Bean1.class); System.out.print("b1.getMsg()" + b1.getMsg()); } } 1234567891011121314151617181920212223242526272829 package demo.core1; import org.springframework.context.annotation.AnnotationConfigApplicationContext;import org.springframework.stereotype.Component; /** * * @author 老唐 */public class App { /** * * @author 老唐 */ @Component public static class Bean1 { public String getMsg() { return "你好"; } } public static void main(String[] argv) { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("demo.core1"); final Bean1 b1 = ctx.getBean(Bean1.class); System.out.print("b1.getMsg()" + b1.getMsg()); }} … Read More