摘要:
最近在项目中用到发送邮件的功能,由于以前没有接触过,找了很多资料才终于把它弄出来,今天写下这些,算是做个总结吧。1、首先定义一个邮件的数据结构类public class EmailData() { String from = null;//发件人String[] recipients = null;//收件人,可以多个String subject = null;//邮件主题String content = null;//邮件内容String contentType = null;//邮件内容格式(文本或html)String fileName = null;//附件文件名(目前只提供一个附件) 阅读全文
摘要:
1:找到 Server 面板,右击当前的那个 Tomcat,先 remove 掉其中所有的工程2:再右击那个 Tomcat,选择 Clean... 清空一下3:双击那个 Tomcat,会打开属性面板,找到左边第二个 Server Locations,你那个单选框选中的应该是第一个,你选择第三个,在 Server Path 中输入你想要的路径后,保存即可以了 阅读全文