Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据源存在? #1

Open
lengjiaxin opened this issue Jun 5, 2018 · 1 comment
Open

数据源存在? #1

lengjiaxin opened this issue Jun 5, 2018 · 1 comment

Comments

@lengjiaxin
Copy link

lengjiaxin commented Jun 5, 2018

警告: Cannot initialize AtomikosDataSourceBean
javax.naming.NamingException: Another resource already exists with name testdb1 - pick a different name

@lengjiaxin
Copy link
Author

Archetype Created Web Application
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    	classpath*:spring/*.xml
    </param-value>
</context-param>
 <!-- Filter encoding -->
<filter>
	<filter-name>CharacterEncodingFilter</filter-name>
	<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
	<init-param>
		<param-name>encoding</param-name>
		<param-value>UTF-8</param-value>
	</init-param>
</filter>
 <filter-mapping>
	<filter-name>CharacterEncodingFilter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>


<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
	<param-name>contextConfigLocation</param-name>
	<param-value>
		classpath*:spring/spring-mvc.xml
	</param-value>
</init-param>

<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
	<servlet-name>spring</servlet-name>
	<url-pattern>*.do</url-pattern>
</servlet-mapping>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant