问题描述
我一直在探索docker,并使用servlet和sql制作了简单的Web应用程序 我已经将dockerized sql并连接了JDBC名称。
student-jdbc
<div class="container">
<img src="https://source.unsplash.com/2Ts5HnA67k8/400x200">
<!-- SVG (purple) -->
<!-- Setting a viewBox can solve the Issue,but I would prefer not to. -->
<div class="wrapper">
<svg>
<!-- Define the Mask -->
<defs>
<circle r="20%" cx="43%" cy="20%" id="circle"/>
<mask id="mask">
<use x="0" href="#circle" fill="white">
<!-- Chrome hack around bug 330815 -->
<animate attributeName="href" to="#circle" begin="0" dur="0s"/>
</use>
</mask>
</defs>
<!-- The stroke of the masked cicle. -->
<use href="#circle" fill="transparent" stroke="white"/>
<!-- The Element we want to mask. -->
<image mask="url(#mask)" href="https://source.unsplash.com/2Ts5HnA67k8/400x200"></image>
</svg>
</div>
</div>
public class StudentDAO {
private static String jdbcURL = "jdbc:MysqL://db:3306/student_details?useSSL=false";
private static String jdbcUsername = "root";
private static String jdbcPassword = "password";
}
docker container run -it-发布8081:8080 your_name / some-app-image
当转到本地主机时它已经成功运行,在tomcat(在Java中)运行时我什么也没找到,这很好。有什么帮助吗?感谢您的浏览。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)