spring
蓝天688
数据开发,程序员
展开
-
Sping boot 读取自定义配置文件(属性)
若自定义属性在application.propreties文件中,可以直接在对应字段引入 @Value("${myProp.prop1}") private String myProp; 若自定义属性在另一文件 mypro.properties 中,需要在对应class上加上 @PropertySource("classpath:mypro.properti原创 2018-02-01 14:22:02 · 224 阅读 · 0 评论 -
SpringBootApplication无法启动:Unregistering JMX-exposed beans on shutdown
IDEA new create Spring Boot Project, run main class: SpringbootJdbcApplication Application应用直接退出 2018-02-05 10:25:19.795 INFO 93703 --- [ main] o.s.j.e.a.AnnotationMBeanExporter原创 2018-02-05 11:28:30 · 6912 阅读 · 1 评论 -
Spring Boot访问Cassandra
Spring Boot 访问Cassandra,大致参考了以下articles, 还是乱七八糟的的,https://github.com/spring-projects/spring-boot/blob/master/spring-boot-samples/spring-boot-sample-data-cassandra/src/main/java/sample/data/cassandra/C...原创 2018-02-01 14:45:41 · 1935 阅读 · 0 评论 -
servlet 中spring 的使用
servlet 中spring 的使用:servlet 中使用spring jdbTemplatehttp://blog.csdn.net/leoleohan/article/details/44265123在工作中使用到spring的mvc框架,分为controller/service/dao三个层次。偶尔会用到servlet替换掉controller,这就遇到如何在servlet中使用注入到s...原创 2018-03-05 13:48:34 · 566 阅读 · 0 评论